org.objectweb.jonas_jms
Class JmsAdminForWSMQ

java.lang.Object
  extended by org.objectweb.jonas_jms.JmsAdminForWSMQ
All Implemented Interfaces:
JmsAdministration

public class JmsAdminForWSMQ
extends java.lang.Object
implements JmsAdministration

WebSphere MQ administration class.

This WebSphere MQ specific class implements the JmsAdministration interface. It supposes that administration is done in parallel within WebSphere MQ (such as creating a queue, creating and binding the corresponding JMS Queue, etc...).

Author:
Frederic Maistre

Constructor Summary
JmsAdminForWSMQ()
          Empty constructor.
 
Method Summary
 javax.jms.Queue createQueue(java.lang.String name)
          Non implemented method: creating a WebSphere MQ destination from JOnAS is not possible.
 javax.jms.Topic createTopic(java.lang.String name)
          Non implemented method: creating a WebSphere MQ destination from JOnAS is not possible.
 void deleteDestination(java.lang.String name)
          Non implemented method: deleting a WebSphere MQ destination from JOnAS is not possible.
 int getPendingMessages(javax.jms.Queue queue)
          Returns -1; did not have time to find out if getting this information is possible from a WSMQ Queue.
 int getPendingRequests(javax.jms.Queue queue)
          Returns -1; did not have time to find out if getting this information is possible from a WSMQ Queue.
 int getSubscriptions(javax.jms.Topic topic)
          Returns -1; did not test the WSMQ Pub/Sub broker.
 javax.jms.XAConnectionFactory getXAConnectionFactory()
          Returns the XAConnectionFactory.
 javax.jms.XAQueueConnectionFactory getXAQueueConnectionFactory()
          Returns the XAQueueConnectionFactory.
 javax.jms.XATopicConnectionFactory getXATopicConnectionFactory()
          Returns the XATopicConnectionFactory.
 void start(boolean collocated, java.lang.String url)
          Initialization method, setting the connection factories.
 void stop()
          Terminates the JMS Service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsAdminForWSMQ

public JmsAdminForWSMQ()
Empty constructor.

Class created with newInstance().

Method Detail

start

public void start(boolean collocated,
                  java.lang.String url)
           throws java.lang.Exception
Initialization method, setting the connection factories.

WebSphere MQ never runs collocated.

Specified by:
start in interface JmsAdministration
Parameters:
collocated - Not taken into account.
url - Not taken into account.
Throws:
java.lang.Exception - If creating a connection factory fails.

stop

public void stop()
Terminates the JMS Service.

Specified by:
stop in interface JmsAdministration

getXAConnectionFactory

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

Specified by:
getXAConnectionFactory in interface JmsAdministration

getXATopicConnectionFactory

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

Specified by:
getXATopicConnectionFactory in interface JmsAdministration

getXAQueueConnectionFactory

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

Specified by:
getXAQueueConnectionFactory in interface JmsAdministration

createQueue

public javax.jms.Queue createQueue(java.lang.String name)
                            throws java.lang.Exception
Non implemented method: creating a WebSphere MQ destination from JOnAS is not possible.

Specified by:
createQueue in interface JmsAdministration
Throws:
java.lang.Exception - Always thrown.

createTopic

public javax.jms.Topic createTopic(java.lang.String name)
                            throws java.lang.Exception
Non implemented method: creating a WebSphere MQ destination from JOnAS is not possible.

Specified by:
createTopic in interface JmsAdministration
Throws:
java.lang.Exception - Always thrown.

deleteDestination

public void deleteDestination(java.lang.String name)
                       throws java.lang.Exception
Non implemented method: deleting a WebSphere MQ destination from JOnAS is not possible.

Specified by:
deleteDestination in interface JmsAdministration
Throws:
java.lang.Exception - Always thrown.

getPendingMessages

public int getPendingMessages(javax.jms.Queue queue)
                       throws java.lang.Exception
Returns -1; did not have time to find out if getting this information is possible from a WSMQ Queue.

Specified by:
getPendingMessages in interface JmsAdministration
Throws:
java.lang.Exception

getPendingRequests

public int getPendingRequests(javax.jms.Queue queue)
                       throws java.lang.Exception
Returns -1; did not have time to find out if getting this information is possible from a WSMQ Queue.

Specified by:
getPendingRequests in interface JmsAdministration
Throws:
java.lang.Exception

getSubscriptions

public int getSubscriptions(javax.jms.Topic topic)
                     throws java.lang.Exception
Returns -1; did not test the WSMQ Pub/Sub broker.

Specified by:
getSubscriptions in interface JmsAdministration
Throws:
java.lang.Exception