public abstract class JmsFactoryFactory
extends java.lang.Object
ConnectionFactory,
QueueConnectionFactory,
TopicConnectionFactory,
Destination,
Queue,
Topic| Modifier and Type | Method and Description |
|---|---|
abstract JmsConnectionFactory |
createConnectionFactory()
Creates an instance of a JmsConnectionFactory of the provider type associated with this
JmsFactoryFactory instance.
|
abstract JmsConnectionFactory |
createConnectionFactory(short flag)
Creates a Connection Factory as specified by the supplied flag.
|
abstract JmsConnectionFactory |
createConnectionFactory(java.lang.String name)
Creates an instance of a JmsConnectionFactory of the provider type associated with this
JmsFactoryFactory instance using the name provided.
|
abstract JmsDestination |
createDestination(short flag,
java.lang.String name)
Creates a Destination as specified by the supplied flag.
|
abstract JmsPropertyContext |
createJmsObject(short flag,
java.lang.Object parameter)
Creates a Jms Admin object as specificed by the required flag parameter.
|
abstract JmsQueue |
createQueue(java.lang.String name)
Creates an instance of a JmsQueue of the provider type associated with this JmsFactoryFactory
instance.
|
abstract JmsQueueConnectionFactory |
createQueueConnectionFactory()
Creates an instance of a JmsQueueConnectionFactory of the provider type associated with this
JmsFactoryFactory instance.
|
abstract JmsQueueConnectionFactory |
createQueueConnectionFactory(java.lang.String uri)
Creates an instance of a JmsQueueConnectionFactory of the provider type associated with this
JmsFactoryFactory instance using the uri provided.
|
abstract JmsTopic |
createTopic(java.lang.String name)
Creates an instance of a JmsTopic of the provider type associated with this JmsFactoryFactory
instance.
|
abstract JmsTopicConnectionFactory |
createTopicConnectionFactory()
Creates an instance of a JmsTopicConnectionFactory of the provider type associated with this
JmsFactoryFactory instance.
|
abstract JmsTopicConnectionFactory |
createTopicConnectionFactory(java.lang.String uri)
Creates an instance of a JmsTopicConnectionFactory of the provider type associated with this
JmsFactoryFactory instance using the uri provided.
|
abstract JmsXAConnectionFactory |
createXAConnectionFactory()
Creates an instance of a JmsXAConnectionFactory of the provider type associated with this
JmsFactoryFactory instance.
|
abstract JmsXAConnectionFactory |
createXAConnectionFactory(java.lang.String uri)
Creates an instance of a JmsXAConnectionFactory of the provider type associated with this
JmsFactoryFactory instance using the uri provided.
|
abstract JmsXAQueueConnectionFactory |
createXAQueueConnectionFactory()
Creates an instance of a JmsXAQueueConnectionFactory of the provider type associated with this
JmsFactoryFactory instance.
|
abstract JmsXAQueueConnectionFactory |
createXAQueueConnectionFactory(java.lang.String uri)
Creates an instance of a JmsXAQueueConnectionFactory of the provider type associated with this
JmsFactoryFactory instance using the uri provided.
|
abstract JmsXATopicConnectionFactory |
createXATopicConnectionFactory()
Creates an instance of a JmsXATopicConnectionFactory of the provider type associated with this
JmsFactoryFactory instance.
|
abstract JmsXATopicConnectionFactory |
createXATopicConnectionFactory(java.lang.String uri)
Creates an instance of a JmsXATopicConnectionFactory of the provider type associated with this
JmsFactoryFactory instance using the uri provided.
|
abstract JmsCapabilityContext |
getCapabilities()
Returns an instance of JmsCapabilityContext, which is used to determine the capabilities of the
provider specified by this instance of the JmsFactoryFactory.
|
abstract int |
getConnectionType()
Returns the provider type associated with this JmsFactoryFactory instance as an integer.
|
abstract java.lang.String |
getConnectionTypeName()
Returns the provider type associated with this JmsFactoryFactory instance as a String.
|
static JmsFactoryFactory |
getInstance(java.util.HashMap<java.lang.String,java.lang.Object> filter)
Fetch a JmsFactoryFactory instance of the specified provider type.
|
static JmsFactoryFactory |
getInstance(int connectionType)
Fetch a JmsFactoryFactory instance of the specified provider type.
|
static JmsFactoryFactory |
getInstance(java.lang.String connectionTypeName)
Fetch a JmsFactoryFactory instance of the specified provider type.
|
public static JmsFactoryFactory getInstance(int connectionType) throws javax.jms.JMSException
connectionType - the provider type of the JmsFactoryFactory instance required, represented
as an integer. For example JmsConstants.CT_WMQjavax.jms.JMSException - if the JmsFactoryFactory instance can not be successfully createdpublic static JmsFactoryFactory getInstance(java.lang.String connectionTypeName) throws javax.jms.JMSException
connectionTypeName - the provider type of the JmsFactoryFactory instance required,
represented as a String. For example JmsConstants.WMQ_PROVIDERjavax.jms.JMSException - if the JmsFactoryFactory instance can not be successfully createdpublic static JmsFactoryFactory getInstance(java.util.HashMap<java.lang.String,java.lang.Object> filter) throws javax.jms.JMSException
filter - Contains a series of name/value pairs identifying the provider types, which at
the very least should include a key for the provider name
JmsConstants.PROVIDER_NAME set to the value of the required provider, for
example JmsConstants.WMQ_PROVIDER. In addition, by using the key
JmsConstants.PROVIDER_VRMF you can specify the version of the Component
returned.javax.jms.JMSException - if the JmsFactoryFactory instance can not be successfully createdpublic abstract JmsConnectionFactory createConnectionFactory() throws javax.jms.JMSException
javax.jms.JMSException - if the JmsConnectionFactory can not be successfully createdpublic abstract JmsConnectionFactory createConnectionFactory(java.lang.String name) throws javax.jms.JMSException
name - the name of the JmsConnectionFactory to be createdjavax.jms.JMSException - if the JmsConnectionFactory can not be successfully createdpublic abstract JmsQueueConnectionFactory createQueueConnectionFactory() throws javax.jms.JMSException
javax.jms.JMSException - if the JmsQueueConnectionFactory can not be successfully createdpublic abstract JmsQueueConnectionFactory createQueueConnectionFactory(java.lang.String uri) throws javax.jms.JMSException
uri - a uri specifying the details of the JmsQueueConnectionFactory to be createdjavax.jms.JMSException - if the JmsQueueConnectionFactory can not be successfully createdpublic abstract JmsTopicConnectionFactory createTopicConnectionFactory() throws javax.jms.JMSException
javax.jms.JMSException - if the JmsTopicConnectionFactory can not be successfully createdpublic abstract JmsTopicConnectionFactory createTopicConnectionFactory(java.lang.String uri) throws javax.jms.JMSException
uri - a uri specifying the details of the JmsTopicConnectionFactory to be createdjavax.jms.JMSException - if the JmsTopicConnectionFactory can not be successfully createdpublic abstract JmsQueue createQueue(java.lang.String name) throws javax.jms.JMSException
name - the name of the JmsQueue to be createdjavax.jms.JMSException - if the JmsQueue can not be successfully createdpublic abstract JmsTopic createTopic(java.lang.String name) throws javax.jms.JMSException
name - the name of the JmsTopic to be createdjavax.jms.JMSException - if the JmsTopic can not be successfully createdpublic abstract JmsXAConnectionFactory createXAConnectionFactory() throws javax.jms.JMSException
javax.jms.JMSException - if the JmsXAConnectionFactory can not be successfully createdpublic abstract JmsXAConnectionFactory createXAConnectionFactory(java.lang.String uri) throws javax.jms.JMSException
uri - a uri specifying the details of the JmsXAConnectionFactory to be createdjavax.jms.JMSException - if the JmsXAConnectionFactory can not be successfully createdpublic abstract JmsXAQueueConnectionFactory createXAQueueConnectionFactory() throws javax.jms.JMSException
javax.jms.JMSException - if the JmsXAQueueConnectionFactory can not be successfully createdpublic abstract JmsXAQueueConnectionFactory createXAQueueConnectionFactory(java.lang.String uri) throws javax.jms.JMSException
uri - a uri specifying the details of the JmsXAQueueConnectionFactory to be createdjavax.jms.JMSException - if the JmsXAQueueConnectionFactory can not be successfully createdpublic abstract JmsXATopicConnectionFactory createXATopicConnectionFactory() throws javax.jms.JMSException
javax.jms.JMSException - if the JmsXATopicConnectionFactory can not be successfully createdpublic abstract JmsXATopicConnectionFactory createXATopicConnectionFactory(java.lang.String uri) throws javax.jms.JMSException
uri - a uri specifying the details of the JmsXATopicConnectionFactory to be createdjavax.jms.JMSException - if the JmsXATopicConnectionFactory can not be successfully createdpublic abstract JmsConnectionFactory createConnectionFactory(short flag) throws javax.jms.JMSException
flag - javax.jms.JMSExceptionpublic abstract JmsDestination createDestination(short flag, java.lang.String name) throws javax.jms.JMSException
flag - name - javax.jms.JMSExceptionpublic abstract JmsPropertyContext createJmsObject(short flag, java.lang.Object parameter) throws javax.jms.JMSException
Jms Constants.
The parameter 'parameter' of type Object is required only when the type of Jms Admin object to be created requires it.
This method might be useful to an application when the type of Jms Admin object to create is known only at runtime and not at compile time.
For example, to create a XAQueueConnectionFactory object you would pass in (
JmsConstants.ADMIN_CONNECTION_FACTORY |
JmsConstants.ADMIN_QUEUE_DOMAIN |
JmsConstants.ADMIN_XA ) as the value of the flag parameter.
Null should be passed as the value for the parameter 'parameter' in this case.
As another example, to create a queue object, you would pass in (
JmsConstants.ADMIN_DESTINATION |
JmsConstants.ADMIN_QUEUE_DOMAIN ) as the value of the flag parameter
and pass any string, accepted by the com.ibm.mq.jms.MQQueue#MQQueue(String) constructor, as the value for the 'parameter' parameter.
flag - Bitmask to determine to tye of Jms Admin object to create.parameter - Used to provide further information for particular Jms Admin objects.javax.jms.JMSExceptionpublic abstract int getConnectionType()
public abstract java.lang.String getConnectionTypeName()
public abstract JmsCapabilityContext getCapabilities() throws javax.jms.JMSException
javax.jms.JMSException - if the JmsCapabilityContext can not be successfully retrieved.