org.objectweb.jonas_jms.api
Interface JmsAdministration

All Known Implementing Classes:
JmsAdminForJoram, JmsAdminForWSMQ

public interface JmsAdministration

JMS Administration interface. must be implemented for each jms provider JOnAS uses this interface to access the JMS provider.

Author:
Philippe Coq Contributor(s): Jeff Mesnil: for JORAM 3.0 integration Frederic Maistre: for JORAM 3.4 (JMS 1.1) integration 03/05/25 : Adriana Danes : add JMS resource monitoring

Method Summary
 javax.jms.Queue createQueue(java.lang.String name)
          Create a Queue
 javax.jms.Topic createTopic(java.lang.String name)
          Create a Topic
 void deleteDestination(java.lang.String name)
          Delete a destination.
 int getPendingMessages(javax.jms.Queue queue)
          Get number of pending messages on a queue
 int getPendingRequests(javax.jms.Queue queue)
          Get number of pending requests on a queue
 int getSubscriptions(javax.jms.Topic topic)
          Get number of subscriptions on a topic
 javax.jms.XAConnectionFactory getXAConnectionFactory()
          Get the XAConnectionFactory
 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().
 void stop()
          Stop the Jms Administrator
 

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

Throws:
java.lang.Exception

stop

public void stop()
Stop the Jms Administrator


getXAConnectionFactory

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


getXATopicConnectionFactory

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


getXAQueueConnectionFactory

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


createTopic

public javax.jms.Topic createTopic(java.lang.String name)
                            throws java.lang.Exception
Create a Topic

Throws:
java.lang.Exception

createQueue

public javax.jms.Queue createQueue(java.lang.String name)
                            throws java.lang.Exception
Create a Queue

Throws:
java.lang.Exception

deleteDestination

public void deleteDestination(java.lang.String name)
                       throws java.lang.Exception
Delete a destination.

Throws:
java.lang.Exception

getPendingMessages

public int getPendingMessages(javax.jms.Queue queue)
                       throws java.lang.Exception
Get number of pending messages on a queue

Throws:
java.lang.Exception

getPendingRequests

public int getPendingRequests(javax.jms.Queue queue)
                       throws java.lang.Exception
Get number of pending requests on a queue

Throws:
java.lang.Exception

getSubscriptions

public int getSubscriptions(javax.jms.Topic topic)
                     throws java.lang.Exception
Get number of subscriptions on a topic

Throws:
java.lang.Exception