|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.jms.JmsObject
public class JmsObject
Convenience base class for deriving other JMS objects from.
Field Summary | |
---|---|
protected boolean |
m_exposeContext
|
protected JNDIConfig |
m_jndiConfig
|
Constructor Summary | |
---|---|
protected |
JmsObject()
Protected constructor. |
Method Summary | |
---|---|
protected void |
destroyObject()
Destroy this object. |
protected javax.jms.Connection |
getConnection()
Returns the connection for this object. |
protected javax.jms.Destination |
getDestination()
Returns the destination that this object will use for communication. |
java.lang.String |
getName()
Returns the name of this JmsObject. |
protected javax.jms.Session |
getSession()
Returns the session for this object. |
protected int |
getType()
Returns the type of this JmsObject. |
protected void |
initObject(java.util.Map props,
javax.jms.ExceptionListener exLsnr)
Initialise this object with the given configuration properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JNDIConfig m_jndiConfig
protected boolean m_exposeContext
Constructor Detail |
---|
protected JmsObject()
Method Detail |
---|
protected void initObject(java.util.Map props, javax.jms.ExceptionListener exLsnr) throws JmsException
JmsConsumer
and
JmsProducer
interfaces.
props
- Map containing the configuration properties.exLsnr
- Optional ExceptionListener instance to register with
the created Connection.
JmsException
- if the object cannot be intialised.public java.lang.String getName()
protected int getType()
JmsConstants.POINT_TO_POINT
or
JmsConstants.PUBLISH_SUBSCRIBE
protected javax.jms.Destination getDestination()
A Topic will be returned if this object is of type
JmsConstants.POINT_TO_POINT
.
a Queue will be returned if this object is of type
JmsConstants.PUBLISH_SUBSCRIBE
protected javax.jms.Session getSession()
protected javax.jms.Connection getConnection()
protected void destroyObject()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |