|
Novell exteNd Web Services SDK API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sssw.jbroker.web.portable.MDBSkeleton
The Message Driven Bean (MDB) skeleton is the base class of all Web Service implementation that are realized using a MDB.
Nested Class Summary | |
static interface |
MDBSkeleton.MDBDelegate
The base class delegates the JMS messages to this interface. |
Field Summary | |
static int |
QUEUE
Constant for a reply queue |
static int |
TOPIC
Constant for a reply topic |
Fields inherited from interface com.sssw.jbroker.web.portable.Skeleton |
TEST_DISABLE |
Method Summary | |
Binding[] |
_getBindings()
Get the bindings set on this skeleton |
ClassInfo |
_getClassInfo()
Get dispatch information for this service object |
Binding |
_getCurrentBinding()
Get the binding currently used by this skeleton |
List |
_getHandlerChain()
Get the handler chain set on this servlet skeleton |
QName |
_getOperationName()
Get the operations's QName |
QName |
_getPortType()
Get the port's QName |
Object |
_getProperty(String propName)
Get a property |
Stub |
_getStub()
Get servlet as stub |
TypeMapper |
_getTypeMapper()
Deprecated. As of jBroker Web 2.0, use _getTypeMappingRegistry
instead |
TypeMappingRegistry |
_getTypeMappingRegistry()
Get the type mapping registry set on this serlvet skeleton |
ServerResponse |
_invoke(Properties props,
InputStream is)
Implementation of InvokeHandler.invoke(Properties props, InputStream is) |
void |
_setClassInfo(ClassInfo info)
Set dispatch information for this service object |
void |
_setCurrentBinding(Binding binding)
Set the binding on this skeleton |
void |
_setHandlerChain(HandlerChain chain)
Set the HandlerChain for the Stub |
void |
_setHandlerChain(List handlerChain)
Set the handler chain on this servlet skeleton. |
String |
_setProperty(String propName,
String propValue)
Set a property |
void |
_setTypeMapper(TypeMapper typeMapper)
Deprecated. As of jBroker Web 2.0, use _setTypeMappingRegistry
instead |
void |
_setTypeMappingRegistry(TypeMappingRegistry typeMapper)
Set the type mapping registry on this serlvet skeleton |
void |
ejbCreate()
The MDB's ejbCreate method is delegated to the delegate. |
void |
ejbRemove()
The MDB's ejbRemove method is delegated to the delegate. |
Connection |
getConnection(int type)
This method retrieves a connection when an incoming message contains a reply destination (as per invoking the getJMSReplyTo method). |
ConnectionFactory |
getConnectionFactory(int type)
This method retrieves a connection factory when an incoming message contains a reply destination (as per invoking the getJMSReplyTo
method). |
MessageProducer |
getProducer(Destination dest,
int type)
This method retrieves a message producer when an incoming message contains a reply destination (as per invoking the getJMSReplyTo method). |
Reference |
getReference()
|
Session |
getSession(int type)
This method retrieves a session when an incoming message contains a reply destination (as per invoking the getJMSReplyTo method). |
void |
init()
|
void |
onMessage(Message m)
The MDB's onMessage method is delegated to the delegate. |
void |
setMessageDrivenContext(MessageDrivenContext ctx)
The MDB's setMessageDrivenContext method is delegated to the delegate. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sssw.jbroker.web.portable.InvokeHandler |
_invoke, isDocument |
Field Detail |
public static final int QUEUE
public static final int TOPIC
Method Detail |
public void init() throws ServletException
ServletException
public Stub _getStub()
Stub
object for selfpublic Reference getReference() throws NamingException
getReference
in interface Referenceable
NamingException
public TypeMapper _getTypeMapper()
_getTypeMappingRegistry
instead
_getTypeMapper
in interface ServiceObject
TypeMapper
object_getTypeMappingRegistry()
public void _setTypeMapper(TypeMapper typeMapper)
_setTypeMappingRegistry
instead
_setTypeMapper
in interface ServiceObject
typeMapper
- a TypeMapper
object with type mappings
to be used by this servlet skeleton_setTypeMappingRegistry(TypeMappingRegistry)
public TypeMappingRegistry _getTypeMappingRegistry()
_getTypeMappingRegistry
in interface ServiceObject
TypeMappingRegistry
objectpublic void _setTypeMappingRegistry(TypeMappingRegistry typeMapper)
_setTypeMappingRegistry
in interface ServiceObject
typeMapper
- a TypeMappingRegistry
object with type
mappings to be used by this servlet skeletonpublic QName _getPortType()
_getPortType
in interface ServiceObject
QName
for the port that defined this skeletonpublic Binding[] _getBindings()
_getBindings
in interface ServiceObject
Binding
objectspublic Binding _getCurrentBinding() throws ServiceException
_getCurrentBinding
in interface ServiceObject
Binding
object
ServiceException
- if serlvet is not activated yetpublic void _setCurrentBinding(Binding binding) throws MalformedURLException
_setCurrentBinding
in interface ServiceObject
binding
- a Binding
object
MalformedURLException
- always raises this exception since
the binding can not be changed on a skeletonpublic Object _getProperty(String propName)
_getProperty
in interface ServiceObject
propName
- the property name
public String _setProperty(String propName, String propValue)
_setProperty
in interface ServiceObject
propName
- the property namepropValue
- the property value
public void _setHandlerChain(List handlerChain)
_setHandlerChain
in interface Skeleton
handlerChain
- a standard handler chainpublic List _getHandlerChain()
public void _setHandlerChain(HandlerChain chain)
ServiceObject
_setHandlerChain
in interface ServiceObject
chain
- the HandlerChain.public void _setClassInfo(ClassInfo info)
_setClassInfo
in interface ServiceObject
info
- the class infopublic ClassInfo _getClassInfo()
ServiceObject
_getClassInfo
in interface ServiceObject
public QName _getOperationName()
ServiceObject
_getOperationName
in interface ServiceObject
public ServerResponse _invoke(Properties props, InputStream is) throws IOException
_invoke
in interface InvokeHandler
props
- transport header iformationis
- input stream to read
IOException
- if an I/O exception occurred during invokepublic void ejbCreate()
super.ejbCreate
to ensure the delegate is
properly initialized.
public void setMessageDrivenContext(MessageDrivenContext ctx)
ctx
- the message driven context objectpublic void onMessage(Message m)
super.onMessage
to ensure proper message dispatch. If you want to filter the messages that
get dispatched as SOAP messages, you might do:
public void onMessage(Message m) { if (m instanceof TextMessage) super.onMessage(m); else // your processing here ... }
onMessage
in interface MessageListener
m
- the JMS messagepublic void ejbRemove()
public ConnectionFactory getConnectionFactory(int type) throws JMSException
getJMSReplyTo
method). The default implementation of this method will return a jBroker
MQ specified connection factory. Implementations may wish to override this
method to use e.g. JNDI to lookup the connection factory.
type
- the connection factory type (QUEUE for queue and TOPIC for topic)
JMSException
- if a factory could not be createdpublic Connection getConnection(int type) throws JMSException
getJMSReplyTo
method). The default
implementation of this method simply calls getConnectionFactory
and invokes the createQueueConnection
or
createTopicConnection
method depending on the destination type.
Implementations may wish to override this method if they for instance need to
specified a username and password when creating the connection.
type
- the connection type (QUEUE for queue and TOPIC for topic)
JMSException
- if a connection could not be createdpublic Session getSession(int type) throws JMSException
getJMSReplyTo
method). The default
implementation of this method simply calls getConnection
and invokes
the createQueueSession
or createTopicSession
method
depending on the destination type. Implementations would normally not override
this method.
type
- the session type (QUEUE for queue and TOPIC for topic)
JMSException
- if a session could not be createdpublic MessageProducer getProducer(Destination dest, int type) throws JMSException
getJMSReplyTo
method). The default
implementation of this method simply calls getSession
and invokes
the createSender
or createPublisher
method
depending on the destination type. Also, a new message producer will be created
in these two circumstances:
dest
is
a Queue object (or vise versa).getQueueName
or getTopicName
differs from the same method on dest
.
type
- the message producer type (QUEUE for queue and TOPIC for topic)
JMSException
- if a producer could not be created
|
Novell exteNd Web Services SDK API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |