org.ow2.jonas.jms
Interface JmsManager


public interface JmsManager

JMS Manager interface. Implemented by the jms module (jonas/lib/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
 Queue createQueue(String name)
          Create a Queue and bind it in the registry
 Topic createTopic(String name)
          Create a Topic and bind it in the registry
 ConnectionFactory getConnectionFactory()
          Get the unique ConnectionFactory
 Queue getQueue(String name)
          Get Queue (creates it if not exist)
 QueueConnectionFactory getQueueConnectionFactory()
          Get the unique QueueConnectionFactory
 Enumeration getQueuesNames()
          Get Queue Names
 Topic getTopic(String name)
          Get Topic (creates it if not exist)
 TopicConnectionFactory getTopicConnectionFactory()
          Get the unique TopicConnectionFactory
 Enumeration getTopicsNames()
          Get Topic Names
 XAConnectionFactory getXAConnectionFactory()
          Get the unique XAConnectionFactory
 XAQueueConnectionFactory getXAQueueConnectionFactory()
          Get the unique XAQueueConnectionFactory
 XATopicConnectionFactory getXATopicConnectionFactory()
          Get the unique XATopicConnectionFactory
 void init(Class cl, boolean collocated, String url, TransactionManager tm)
          Initialisation of JmsManager
 void stop()
          Terminate the administering process
 

Method Detail

init

void init(Class cl,
          boolean collocated,
          String url,
          TransactionManager tm)
          throws 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:
Exception - must be thrown if the MOM is unreachable

stop

void stop()
          throws Exception
Terminate the administering process

Throws:
Exception

createQueue

Queue createQueue(String name)
                  throws Exception
Create a Queue and bind it in the registry

Throws:
Exception

getQueue

Queue getQueue(String name)
               throws Exception
Get Queue (creates it if not exist)

Throws:
Exception

getQueuesNames

Enumeration getQueuesNames()
Get Queue Names


createTopic

Topic createTopic(String name)
                  throws Exception
Create a Topic and bind it in the registry

Throws:
Exception

getTopic

Topic getTopic(String name)
               throws Exception
Get Topic (creates it if not exist)

Throws:
Exception

getTopicsNames

Enumeration getTopicsNames()
Get Topic Names


getConnectionFactory

ConnectionFactory getConnectionFactory()
Get the unique ConnectionFactory


getXAConnectionFactory

XAConnectionFactory getXAConnectionFactory()
Get the unique XAConnectionFactory


getTopicConnectionFactory

TopicConnectionFactory getTopicConnectionFactory()
Get the unique TopicConnectionFactory


getXATopicConnectionFactory

XATopicConnectionFactory getXATopicConnectionFactory()
Get the unique XATopicConnectionFactory


getQueueConnectionFactory

QueueConnectionFactory getQueueConnectionFactory()
Get the unique QueueConnectionFactory


getXAQueueConnectionFactory

XAQueueConnectionFactory getXAQueueConnectionFactory()
Get the unique XAQueueConnectionFactory



Copyright © 2010 OW2 Consortium. All Rights Reserved.