toolbox.jms
Interface JmsManager

Package class diagram package JmsManager
All Known Implementing Classes:
JmsManagerImpl

public interface JmsManager

Interface that defines a management object for JMS configuration and a set of JmsConsumers and JmsProducers.


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 configuration.
 

Method Detail

init

void init(java.lang.String name,
          java.lang.String config)
          throws JmsException
Initialise this manager with the given name identifier and the location of the it's configuration.

Parameters:
name - String containing a name identifier for this manager.
config - String containing the location of the manager configuration.
Throws:
JmsException - if the manager cannot be initialised.

getConsumer

JmsConsumer getConsumer(java.lang.String name)
Return the named consumer managed by this manager.

Parameters:
name - String containing the name of the consumer to return.
Returns:
JmsConsumer instance or null if no consumer exists with this name.

getProducer

JmsProducer getProducer(java.lang.String name)
Return the named producer managed by this manager.

Parameters:
name - String containing the name of the producer to return.
Returns:
JmsProducer instance of null if no produer exists with this name.

destroy

void destroy()
Destroy this manager by destroying all managed producers and consumers.