com.ibm.websphere.sib.api.jms

Class JmsFactoryFactory

  1. java.lang.Object
  2. extended bycom.ibm.websphere.sib.api.jms.JmsFactoryFactory

  1. public abstract class JmsFactoryFactory
  2. extends java.lang.Object
The JmsFactoryFactory class is the programmatic entry point into the JMS implementation classes.

We separate interfaces and implementation so that applications can be compiled without having to have the implementation present, and this class allows applications to obtain the top level implementation objects.


Constructor Summary

Constructor and Description
JmsFactoryFactory()

Method Summary

Modifier and Type Method and Description
  1. abstract
  2. JmsConnectionFactory
createConnectionFactory()
Create a provider specific ConnectionFactory object.
  1. abstract
  2. JmsQueue
createQueue(java.lang.String name)
Provides the ability to create a javax.jms.Queue object without creating a JMS Session.
  1. abstract
  2. JmsQueueConnectionFactory
createQueueConnectionFactory()
Create a provider specific QueueConnectionFactory object.
  1. abstract
  2. JmsTopic
createTopic(java.lang.String name)
Provides the ability to create a javax.jms.Topic object without creating a JMS Session.
  1. abstract
  2. JmsTopicConnectionFactory
createTopicConnectionFactory()
Create a provider specific TopicConnectionFactory object.
  1. static
  2. JmsFactoryFactory
getInstance()
Returns a singleton instance of the JmsFactoryFactory class.
  1. abstract
  2. javax.jms.ConnectionMetaData
getMetaData()
Provides the ability to obtain a javax.jms.ConnectionMetaData object without creating an active Connection to the bus.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

JmsFactoryFactory

  1. public JmsFactoryFactory()

Method Detail

getInstance

  1. public static JmsFactoryFactory getInstance( )
  2. throws javax.jms.JMSException
Returns a singleton instance of the JmsFactoryFactory class.

Returns:
The JmsFactoryFactory singleton object instance
Throws:
javax.jms.JMSException - If it was not possible to instantiate the implementation class.

createConnectionFactory

  1. public abstract JmsConnectionFactory createConnectionFactory( )
  2. throws javax.jms.JMSException
Create a provider specific ConnectionFactory object.

Returns:
A new JMS ConnectionFactory object.
Throws:
javax.jms.JMSException - Indicates a failure to initialize the required classes.

createQueueConnectionFactory

  1. public abstract JmsQueueConnectionFactory createQueueConnectionFactory( )
  2. throws javax.jms.JMSException
Create a provider specific QueueConnectionFactory object.

Returns:
A new JMS QueueConnectionFactory object.
Throws:
javax.jms.JMSException - Indicates a failure to initialize the required classes.

createTopicConnectionFactory

  1. public abstract JmsTopicConnectionFactory createTopicConnectionFactory( )
  2. throws javax.jms.JMSException
Create a provider specific TopicConnectionFactory object.

Returns:
A new JMS TopicConnectionFactory object.
Throws:
javax.jms.JMSException - Indicates a failure to initialize the required classes.

createQueue

  1. public abstract JmsQueue createQueue( java.lang.String name)
  2. throws javax.jms.JMSException
Provides the ability to create a javax.jms.Queue object without creating a JMS Session.

This method is provided as a convenience to the application programmer, who may wish to create these objects to bind into JNDI without making an active Connection to the bus.

The behaviour of this method is equivalent to session.createQueue(name).

Parameters:
name - The name of the Queue this object should reference.
Returns:
A new JMS Queue (administered object).
Throws:
javax.jms.JMSException - If the supplied parameter is not in the correct format.
See Also:
Session.createQueue(String)

createTopic

  1. public abstract JmsTopic createTopic( java.lang.String name)
  2. throws javax.jms.JMSException
Provides the ability to create a javax.jms.Topic object without creating a JMS Session.

This method is provided as a convenience to the application programmer, who may wish to create these objects to bind into JNDI without making an active Connection to the bus.

The behaviour of this method is equivalent to session.createTopic(name).

Parameters:
name - The name of the Topic this object should reference.
Returns:
A new JMS Topic (administered object).
Throws:
javax.jms.JMSException - If the supplied parameter is not in the correct format.
See Also:
Session.createTopic(String)

getMetaData

  1. public abstract javax.jms.ConnectionMetaData getMetaData( )
  2. throws javax.jms.JMSException
Provides the ability to obtain a javax.jms.ConnectionMetaData object without creating an active Connection to the bus.

This method is provided as a convenience to the application programmer. The behaviour of this method is equivalent to connection.getMetaData().

Returns:
A provider implementation of the ConnectionMetaData interface.
Throws:
javax.jms.JMSException - If the required information is not available.
See Also:
Connection.getMetaData()