org.objectweb.jonas_jms
Class JmsAdminForWSMQ

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

public class JmsAdminForWSMQ
extends 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
 Queue createQueue(String name)
          Non implemented method: creating a WebSphere MQ destination from JOnAS is not possible.
 Topic createTopic(String name)
          Non implemented method: creating a WebSphere MQ destination from JOnAS is not possible.
 void deleteDestination(String name)
          Non implemented method: deleting a WebSphere MQ destination from JOnAS is not possible.
 int getPendingMessages(Queue queue)
          Returns -1; did not have time to find out if getting this information is possible from a WSMQ Queue.
 int getPendingRequests(Queue queue)
          Returns -1; did not have time to find out if getting this information is possible from a WSMQ Queue.
 int getSubscriptions(Topic topic)
          Returns -1; did not test the WSMQ Pub/Sub broker.
 XAConnectionFactory getXAConnectionFactory()
          Returns the XAConnectionFactory.
 XAQueueConnectionFactory getXAQueueConnectionFactory()
          Returns the XAQueueConnectionFactory.
 XATopicConnectionFactory getXATopicConnectionFactory()
          Returns the XATopicConnectionFactory.
 void start(boolean collocated, 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,
                  String url)
           throws 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:
Exception - If creating a connection factory fails.

stop

public void stop()
Terminates the JMS Service.

Specified by:
stop in interface JmsAdministration

getXAConnectionFactory

public XAConnectionFactory getXAConnectionFactory()
Returns the XAConnectionFactory.

Specified by:
getXAConnectionFactory in interface JmsAdministration

getXATopicConnectionFactory

public XATopicConnectionFactory getXATopicConnectionFactory()
Returns the XATopicConnectionFactory.

Specified by:
getXATopicConnectionFactory in interface JmsAdministration

getXAQueueConnectionFactory

public XAQueueConnectionFactory getXAQueueConnectionFactory()
Returns the XAQueueConnectionFactory.

Specified by:
getXAQueueConnectionFactory in interface JmsAdministration

createQueue

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

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

createTopic

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

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

deleteDestination

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

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

getPendingMessages

public int getPendingMessages(Queue queue)
                       throws 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:
Exception

getPendingRequests

public int getPendingRequests(Queue queue)
                       throws 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:
Exception

getSubscriptions

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

Specified by:
getSubscriptions in interface JmsAdministration
Throws:
Exception


Copyright © 2007 OW2 Consortium. All Rights Reserved.