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.

Author:
Philippe Coq Contributor(s): Jeff Mesnil: for JORAM 3.0 integration Frederic Maistre: for JORAM 3.4 (JMS 1.1) integration

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.ConnectionFactory getConnectionFactory()
          Get the unique ConnectionFactory
 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.XAConnectionFactory getXAConnectionFactory()
          Get the unique XAConnectionFactory
 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, org.objectweb.transaction.jta.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,
                 org.objectweb.transaction.jta.TransactionManager tm)
          throws java.lang.Exception
Initialisation of JmsManager

Throws:
java.lang.Exception - must be thrown if the MOM is unreachable

stop

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

Throws:
java.lang.Exception

createQueue

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

Throws:
java.lang.Exception

getQueue

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

Throws:
java.lang.Exception

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

Throws:
java.lang.Exception

getTopic

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

Throws:
java.lang.Exception

getTopicsNames

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


getConnectionFactory

public javax.jms.ConnectionFactory getConnectionFactory()
Get the unique ConnectionFactory


getXAConnectionFactory

public javax.jms.XAConnectionFactory getXAConnectionFactory()
Get the unique XAConnectionFactory


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