org.ow2.jotm.jms
Class JmsAdminForJoram

java.lang.Object
  extended by org.ow2.jotm.jms.JmsAdminForJoram
All Implemented Interfaces:
JmsAdministration

public class JmsAdminForJoram
extends Object
implements JmsAdministration

Joram administration. This JORAM specific class allows to administer a JORAM server when JORAM has been declared as a service.


Constructor Summary
JmsAdminForJoram()
          default constructor.
 
Method Summary
 Queue createQueue(String name)
          Create a Queue and bind it to the registry
 Topic createTopic(String name)
          Create a Topic and bind it to the registry
 XAConnectionFactory getXAConnectionFactory()
          Get the XAConnectionFactory
 XAQueueConnectionFactory getXAQueueConnectionFactory()
          Get the XAQueueConnectionFactory
 XATopicConnectionFactory getXATopicConnectionFactory()
          Get the XATopicConnectionFactory
 void start(boolean collocated, String url)
          Jms Administrator is created with newInstance().
 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,
                  String url)
           throws 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:
collocated - true for if the MOM in run in the current JVM
url - connexion that must be used if not collocated
Throws:
Exception - could not start MOM

stop

public void stop()
Stop the Jms Administrator

Specified by:
stop in interface JmsAdministration

getXAConnectionFactory

public XAConnectionFactory getXAConnectionFactory()
Get the XAConnectionFactory

Specified by:
getXAConnectionFactory in interface JmsAdministration
Returns:
the XAConnectionFactory

getXATopicConnectionFactory

public XATopicConnectionFactory getXATopicConnectionFactory()
Get the XATopicConnectionFactory

Specified by:
getXATopicConnectionFactory in interface JmsAdministration
Returns:
the XATopicConnectionFactory

getXAQueueConnectionFactory

public XAQueueConnectionFactory getXAQueueConnectionFactory()
Get the XAQueueConnectionFactory

Specified by:
getXAQueueConnectionFactory in interface JmsAdministration
Returns:
the XAQueuConnectionFactory

createQueue

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

Specified by:
createQueue in interface JmsAdministration
Parameters:
name - the JNDI name
Returns:
the new Queue
Throws:
Exception - could not create destination

createTopic

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

Specified by:
createTopic in interface JmsAdministration
Parameters:
name - the JNDI name
Returns:
the new Topic
Throws:
Exception - could not create destination


Copyright ? 2005-2010 OW2 Consortium. All Rights Reserved.