org.objectweb.jonas_jms.api
Interface JmsAdministration

All Known Implementing Classes:
JmsAdminForJoram

public interface JmsAdministration

JMS Administration interface. must be implemented for each jms provider JOnAS uses this interface to access the JMS provider.


Method Summary
 javax.jms.Queue createQueue(java.lang.String name)
          Create a Queue
 javax.jms.Topic createTopic(java.lang.String name)
          Create a Topic
 javax.jms.XAQueueConnectionFactory getXAQueueConnectionFactory()
          Get the XAQueueConnectionFactory
 javax.jms.XATopicConnectionFactory getXATopicConnectionFactory()
          Get the XATopicConnectionFactory
 void start(boolean collocated, java.lang.String url)
          Jms Administrator is created with newInstance(). initialization is done later with this method.
 void stop()
          Stop the Jms Administrator
 

Method Detail

start

public void start(boolean collocated,
                  java.lang.String url)
           throws java.lang.Exception
Jms Administrator is created with newInstance(). initialization is done later with this method. The MOM will be started if collocated. This method should create an XATopicConnectionFactory and an XAQueueConnectionFactory
Parameters:
boolean - true for if the MOM in run in the current JVM
String - url connexion that must be used.

stop

public void stop()
Stop the Jms Administrator

getXATopicConnectionFactory

public javax.jms.XATopicConnectionFactory getXATopicConnectionFactory()
Get the XATopicConnectionFactory

getXAQueueConnectionFactory

public javax.jms.XAQueueConnectionFactory getXAQueueConnectionFactory()
Get the XAQueueConnectionFactory

createTopic

public javax.jms.Topic createTopic(java.lang.String name)
                            throws java.lang.Exception
Create a Topic

createQueue

public javax.jms.Queue createQueue(java.lang.String name)
                            throws java.lang.Exception
Create a Queue