org.objectweb.jonas_jms.api
Interface JmsManager

All Known Implementing Classes:
JmsManagerImpl

public interface JmsManager

JMS Manager interface. Implemented by the jms module (jonas_jms/JmsManagerImpl) This interface allows other jonas module to be independant of jonas_jms implementation.


Method Summary
 javax.jms.Queue createQueue(java.lang.String name)
          Create a Queue and bind it in the registry
 javax.jms.Topic createTopic(java.lang.String name)
          Create a Topic and bind it in the registry
 javax.jms.Queue getQueue(java.lang.String name)
          Get Queue (creates it if not exist)
 javax.jms.QueueConnectionFactory getQueueConnectionFactory()
          Get the unique QueueConnectionFactory
 java.util.Enumeration getQueuesNames()
          Get Queue Names
 javax.jms.Topic getTopic(java.lang.String name)
          Get Topic (creates it if not exist)
 javax.jms.TopicConnectionFactory getTopicConnectionFactory()
          Get the unique TopicConnectionFactory
 java.util.Enumeration getTopicsNames()
          Get Topic Names
 javax.jms.XAQueueConnectionFactory getXAQueueConnectionFactory()
          Get the unique XAQueueConnectionFactory
 javax.jms.XATopicConnectionFactory getXATopicConnectionFactory()
          Get the unique XATopicConnectionFactory
 void init(java.lang.Class cl, boolean collocated, java.lang.String url, javax.transaction.TransactionManager tm)
          Initialisation of JmsManager
 void stop()
          Terminate the administering process
 

Method Detail

init

public void init(java.lang.Class cl,
                 boolean collocated,
                 java.lang.String url,
                 javax.transaction.TransactionManager tm)
          throws java.lang.Exception
Initialisation of JmsManager
Parameters:
class - cl class implementing administration process
boolean - true for launching the MOM in the same JVM
String - connexion url to the MOM (in case of remote mode)
TransactionManager - tm
Throws:
java.lang.Exception - must be thrown if the MOM is unreachable

stop

public void stop()
          throws java.lang.Exception
Terminate the administering process

createQueue

public javax.jms.Queue createQueue(java.lang.String name)
                            throws java.lang.Exception
Create a Queue and bind it in the registry

getQueue

public javax.jms.Queue getQueue(java.lang.String name)
                         throws java.lang.Exception
Get Queue (creates it if not exist)

getQueuesNames

public java.util.Enumeration getQueuesNames()
Get Queue Names

createTopic

public javax.jms.Topic createTopic(java.lang.String name)
                            throws java.lang.Exception
Create a Topic and bind it in the registry

getTopic

public javax.jms.Topic getTopic(java.lang.String name)
                         throws java.lang.Exception
Get Topic (creates it if not exist)

getTopicsNames

public java.util.Enumeration getTopicsNames()
Get Topic Names

getTopicConnectionFactory

public javax.jms.TopicConnectionFactory getTopicConnectionFactory()
Get the unique TopicConnectionFactory

getXATopicConnectionFactory

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

getQueueConnectionFactory

public javax.jms.QueueConnectionFactory getQueueConnectionFactory()
Get the unique QueueConnectionFactory

getXAQueueConnectionFactory

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