org.osesb.utilities.jms
Class DisplayJMSProviderInformation

java.lang.Object
  extended by org.osesb.utilities.jms.DisplayJMSProviderInformation

public class DisplayJMSProviderInformation
extends java.lang.Object

This is not an operational framework Class. The purpose of this Class is to connect to a JMS provider and display the ConnectionMetaData.

It uses a JMSClientConfiguration for connection properties, makes a QueueConnection, and displays ConnectionMetaData. Use this Class to determine the JMS version (1.0 or 1.1) that the provider supports. The JMS version is an inportant consideration when using temporary replyTo Destinations. JMS 1.0 requires that the Session creating a TemporaryQueue or TemporaryTopic be a QueueSession or TopicSession, respectively. The JMS 1.0 API also requires that a QueueReceiver or TopicReceiver be created by a QueueSession or TopicSession, respectively. The JMS 1.0 API restrictions make it difficult to set up a completely flexible replyTo scheme that allows QueueSenders to have replyTo Topics or TopicSenders that have replyTo Queues. JMS 1.1 does not have these restrictions.

The class is JMS 1.0 compliant.


Field Summary
protected  JMSClientConfiguration jmsClientConfiguration
          The JMS configuration properties as read from the XML configuration file.
protected  javax.jms.QueueConnection queueConnection
          The QueueConnection.
protected  java.lang.String thisClassName
          The full name of this class.
 
Constructor Summary
DisplayJMSProviderInformation(JMSClientConfiguration jmsClientConfiguration)
          Creates a new instance of JMSProviderInformation.
 
Method Summary
 java.lang.String getConnectionMetaData()
          Initialize JMS QueueConnection according to JMSClientConfiguration passed to constructor.
static void main(java.lang.String[] args)
          main() For testing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thisClassName

protected java.lang.String thisClassName
The full name of this class.


jmsClientConfiguration

protected JMSClientConfiguration jmsClientConfiguration
The JMS configuration properties as read from the XML configuration file.


queueConnection

protected javax.jms.QueueConnection queueConnection
The QueueConnection.

Constructor Detail

DisplayJMSProviderInformation

public DisplayJMSProviderInformation(JMSClientConfiguration jmsClientConfiguration)
                              throws java.lang.Exception
Creates a new instance of JMSProviderInformation.

Parameters:
jmsClientConfiguration - The JMSClientConfiguration.
Throws:
java.lang.Exception - if constructed with a null JMSClientConfiguration.
Method Detail

getConnectionMetaData

public java.lang.String getConnectionMetaData()
Initialize JMS QueueConnection according to JMSClientConfiguration passed to constructor. Display the ConnectionMetaData.


main

public static void main(java.lang.String[] args)
main() For testing.

Parameters:
args - commandline arguments