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

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

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

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

Throws:
java.lang.Exception

createQueue

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

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

Throws:
java.lang.Exception

getQueuesNames

java.util.Enumeration getQueuesNames()
Get Queue Names


createTopic

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

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

Throws:
java.lang.Exception

getTopicsNames

java.util.Enumeration getTopicsNames()
Get Topic Names


getConnectionFactory

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


getXAConnectionFactory

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


getTopicConnectionFactory

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


getXATopicConnectionFactory

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


getQueueConnectionFactory

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


getXAQueueConnectionFactory

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