com.ibm.msg.client.jms
Class JmsFactoryFactory
- java.lang.Object
- com.ibm.msg.client.jms.JmsFactoryFactory
- public abstract class JmsFactoryFactory
- extends java.lang.Object
ConnectionFactory
,
QueueConnectionFactory
,
TopicConnectionFactory
,
Destination
,
Queue
,
Topic
Method Summary
Modifier and Type | Method and Description |
---|---|
|
createConnectionFactory()
Creates an instance of a JmsConnectionFactory of the provider type associated with this
JmsFactoryFactory instance.
|
|
createConnectionFactory(short flag)
Creates a Connection Factory as specified by the supplied flag.
|
|
createDestination(short flag,java.lang.String name)
Creates a Destination as specified by the supplied flag.
|
|
createJmsObject(short flag,java.lang.Object parameter)
Creates a Jms Admin object as specificed by the required flag parameter.
|
|
createQueue(java.lang.String name)
Creates an instance of a JmsQueue of the provider type associated with this JmsFactoryFactory
instance.
|
|
createQueueConnectionFactory()
Creates an instance of a JmsQueueConnectionFactory of the provider type associated with this
JmsFactoryFactory instance.
|
|
createTopic(java.lang.String name)
Creates an instance of a JmsTopic of the provider type associated with this JmsFactoryFactory
instance.
|
|
createTopicConnectionFactory()
Creates an instance of a JmsTopicConnectionFactory of the provider type associated with this
JmsFactoryFactory instance.
|
|
createXAConnectionFactory()
Creates an instance of a JmsXAConnectionFactory of the provider type associated with this
JmsFactoryFactory instance.
|
|
createXAQueueConnectionFactory()
Creates an instance of a JmsXAQueueConnectionFactory of the provider type associated with this
JmsFactoryFactory instance.
|
|
createXATopicConnectionFactory()
Creates an instance of a JmsXATopicConnectionFactory of the provider type associated with this
JmsFactoryFactory instance.
|
|
getCapabilities()
Returns an instance of JmsCapabilityContext, which is used to determine the capabilities of the
provider specified by this instance of the JmsFactoryFactory.
|
|
getConnectionType()
Returns the provider type associated with this JmsFactoryFactory instance as an integer.
|
|
getConnectionTypeName()
Returns the provider type associated with this JmsFactoryFactory instance as a String.
|
|
getInstance(java.util.HashMap<java.lang.Object,java.lang.Object> filter)
Fetch a JmsFactoryFactory instance of the specified provider type.
|
|
getInstance(int connectionType)
Fetch a JmsFactoryFactory instance of the specified provider type.
|
|
getInstance(java.lang.String connectionTypeName)
Fetch a JmsFactoryFactory instance of the specified provider type.
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail
getInstance
- 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_WMQ
javax.jms.JMSException
- if the JmsFactoryFactory instance can not be successfully created getInstance
- public 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_PROVIDER
javax.jms.JMSException
- if the JmsFactoryFactory instance can not be successfully created getInstance
- public static JmsFactoryFactory getInstance( java.util.HashMap<java.lang.Object,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 created createConnectionFactory
- public abstract JmsConnectionFactory createConnectionFactory( )
- throws javax.jms.JMSException
javax.jms.JMSException
- if the JmsConnectionFactory can not be successfully created createQueueConnectionFactory
- public abstract JmsQueueConnectionFactory createQueueConnectionFactory( )
- throws javax.jms.JMSException
javax.jms.JMSException
- if the JmsQueueConnectionFactory can not be successfully created createTopicConnectionFactory
- public abstract JmsTopicConnectionFactory createTopicConnectionFactory( )
- throws javax.jms.JMSException
javax.jms.JMSException
- if the JmsTopicConnectionFactory can not be successfully created createQueue
- public abstract JmsQueue createQueue( java.lang.String name)
- throws javax.jms.JMSException
name
- the name of the JmsQueue to be created javax.jms.JMSException
- if the JmsQueue can not be successfully created createTopic
- public abstract JmsTopic createTopic( java.lang.String name)
- throws javax.jms.JMSException
name
- the name of the JmsTopic to be created javax.jms.JMSException
- if the JmsTopic can not be successfully created createXAConnectionFactory
- public abstract JmsXAConnectionFactory createXAConnectionFactory( )
- throws javax.jms.JMSException
javax.jms.JMSException
- if the JmsXAConnectionFactory can not be successfully created createXAQueueConnectionFactory
- public abstract JmsXAQueueConnectionFactory createXAQueueConnectionFactory( )
- throws javax.jms.JMSException
javax.jms.JMSException
- if the JmsXAQueueConnectionFactory can not be successfully created createXATopicConnectionFactory
- public abstract JmsXATopicConnectionFactory createXATopicConnectionFactory( )
- throws javax.jms.JMSException
javax.jms.JMSException
- if the JmsXATopicConnectionFactory can not be successfully created createConnectionFactory
- public abstract JmsConnectionFactory createConnectionFactory( short flag)
- throws javax.jms.JMSException
flag
- javax.jms.JMSException
createDestination
- public abstract JmsDestination createDestination( short flag,
- java.lang.String name)
- throws javax.jms.JMSException
flag
- javax.jms.JMSException
createJmsObject
- public 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 MQQueue 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.JMSException
getConnectionType
- public abstract int getConnectionType( )
getConnectionTypeName
- public abstract java.lang.String getConnectionTypeName( )
getCapabilities
- public abstract JmsCapabilityContext getCapabilities( )
- throws javax.jms.JMSException
javax.jms.JMSException
- if the JmsCapabilityContext can not be successfully retrieved.