org.ow2.jotm.jms.api
Interface JmsAdministration

All Known Implementing Classes:
JmsAdminForJoram

public interface JmsAdministration

JMS Administration interface. must be implemented for each jms provider


Method Summary
 Queue createQueue(String name)
          Create a Queue
 Topic createTopic(String name)
          Create a Topic
 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
 

Method Detail

start

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 XAConnectionFactory, a XATopicConnectionFactory and a XAQueueConnectionFactory

Parameters:
collocated - true for if the MOM in run in the current JVM
url - connexion that must be used.
Throws:
Exception - could not start MOM

stop

void stop()
Stop the Jms Administrator


getXAConnectionFactory

XAConnectionFactory getXAConnectionFactory()
Get the XAConnectionFactory

Returns:
the XAConnectionFactory

getXATopicConnectionFactory

XATopicConnectionFactory getXATopicConnectionFactory()
Get the XATopicConnectionFactory

Returns:
the XATopicConnectionFactory

getXAQueueConnectionFactory

XAQueueConnectionFactory getXAQueueConnectionFactory()
Get the XAQueueConnectionFactory

Returns:
the XAQueuConnectionFactory

createTopic

Topic createTopic(String name)
                  throws Exception
Create a Topic

Parameters:
name - the JNDI name
Returns:
the new Topic
Throws:
Exception - could not create destination

createQueue

Queue createQueue(String name)
                  throws Exception
Create a Queue

Parameters:
name - the JNDI name
Returns:
the new Queue
Throws:
Exception - could not create destination


Copyright ? 2008 OW2 Consortium. All Rights Reserved.