|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IJMSAdapter should be implemented to encapsulate JMS provider specific logic for creation of the JMS administered objects. The administered objects are queues, topics and connection factories for those. Instances of IJMSAdapter must be registered with the JMS subsystem of GLUE, by calling the electric.server.jms.JMS.registerAdapter() method. The method maps a class that belongs to a JMS provider codebase to an instance of IJMSAdapter.
Method Summary | |
java.lang.String |
getClassName()
Returns the name of the class unique to the jms provider represented by an implementation of this interface |
java.lang.String |
getProviderName()
Return the name of the provider |
javax.jms.Queue |
getQueue(java.lang.String queueName,
boolean create)
This method is called by the JMS subsystem of GLUE to request construction and placement of a JMS Queue object in a JNDI directory The method returns the name of the queue conforming to the requirements of the provider |
javax.jms.QueueConnectionFactory |
getQueueConnectionFactory(java.lang.String queueConnFactoryName,
boolean create)
This method is called by the JMS subsystem of GLUE to request construction and placement of a JMS Queue Connection Factory object in a JNDI directory The method returns the name of the queue connection factory conforming to the requirements of the provider |
Context |
getStartupContext()
Get the context with the properties used to initialize/customize this admin. |
boolean |
isStarted()
Test if the admin had been started |
void |
shutdown()
Close any resources used by the admin and shutdown the admin |
void |
startup(Context context)
Get any setting overrides from the context. |
Method Detail |
public void startup(Context context) throws javax.jms.JMSException, javax.naming.NamingException
context
- the context containing any custom settings for the provider
javax.jms.JMSException
javax.naming.NamingException
public void shutdown() throws javax.jms.JMSException, javax.naming.NamingException
javax.jms.JMSException
javax.naming.NamingException
public boolean isStarted()
public Context getStartupContext()
public javax.jms.Queue getQueue(java.lang.String queueName, boolean create) throws javax.jms.JMSException, javax.naming.NamingException
queueName
- JNDI name of the queuecreate
- if true, create the queue
javax.jms.JMSException
javax.naming.NamingException
public javax.jms.QueueConnectionFactory getQueueConnectionFactory(java.lang.String queueConnFactoryName, boolean create) throws javax.jms.JMSException, javax.naming.NamingException
queueConnFactoryName
- JNDI name of the queue connecion factorycreate
- if true, create the queue
javax.jms.JMSException
javax.naming.NamingException
public java.lang.String getClassName()
public java.lang.String getProviderName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |