|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.jms.JmsManagerImpl
public class JmsManagerImpl
Default implementation of the JmsManager
interface that utilises
an XML configuration document to initialise.
Constructor Summary | |
---|---|
JmsManagerImpl()
Default constructor. |
Method Summary | |
---|---|
void |
destroy()
Destroy this manager by destroying all managed producers and consumers. |
JmsConsumer |
getConsumer(java.lang.String name)
Return the named consumer managed by this manager. |
JmsProducer |
getProducer(java.lang.String name)
Return the named producer managed by this manager. |
void |
init(java.lang.String name,
java.lang.String config)
Initialise this manager with the given name identifier and the location of the it's XML configuration document. |
void |
onException(javax.jms.JMSException jmse)
Receive notifications of connection exceptions and reinitialise this manager instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JmsManagerImpl()
Method Detail |
---|
public void init(java.lang.String name, java.lang.String config) throws JmsException
init
in interface JmsManager
name
- String containing a name identifier for this manager.config
- String containing the path to the XML configuration
document.
JmsException
- if the manager cannot be initialised.public JmsConsumer getConsumer(java.lang.String name)
getConsumer
in interface JmsManager
name
- String containing the name of the consumer to return.
public JmsProducer getProducer(java.lang.String name)
getProducer
in interface JmsManager
name
- String containing the name of the producer to return.
public void destroy()
destroy
in interface JmsManager
public void onException(javax.jms.JMSException jmse)
onException
in interface javax.jms.ExceptionListener
jmse
- JMSException that occured on the connection.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |