org.objectweb.jonas_jms
Class JmsAdminForJoram

java.lang.Object
  |
  +--org.objectweb.jonas_jms.JmsAdminForJoram
All Implemented Interfaces:
JmsAdministration

public class JmsAdminForJoram
extends java.lang.Object
implements JmsAdministration

Joram Administration. This Joram specific class implements the JMS independant interface JmsAdministration.

Author:
Philippe Coq Contributor(s): Philippe Durieux Jeff Mesnil: for JORAM 3.x integration

Constructor Summary
JmsAdminForJoram()
          default constructor.
 
Method Summary
 javax.jms.Queue createQueue(java.lang.String name)
          Create a Queue and bind it to the registry
 javax.jms.Topic createTopic(java.lang.String name)
          Create a Topic and bind it to the registry
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsAdminForJoram

public JmsAdminForJoram()
default constructor. This class will be created with newInstance().
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
Specified by:
start in interface JmsAdministration
Parameters:
boolean - true for if the MOM in run in the current JVM
String - url connexion that must be used if not collocated

stop

public void stop()
Stop the Jms Administrator
Specified by:
stop in interface JmsAdministration

getXATopicConnectionFactory

public javax.jms.XATopicConnectionFactory getXATopicConnectionFactory()
Get the XATopicConnectionFactory
Specified by:
getXATopicConnectionFactory in interface JmsAdministration

getXAQueueConnectionFactory

public javax.jms.XAQueueConnectionFactory getXAQueueConnectionFactory()
Get the XAQueueConnectionFactory
Specified by:
getXAQueueConnectionFactory in interface JmsAdministration

createQueue

public javax.jms.Queue createQueue(java.lang.String name)
                            throws java.lang.Exception
Create a Queue and bind it to the registry
Specified by:
createQueue in interface JmsAdministration

createTopic

public javax.jms.Topic createTopic(java.lang.String name)
                            throws java.lang.Exception
Create a Topic and bind it to the registry
Specified by:
createTopic in interface JmsAdministration