com.ibm.mq.jms
Class MQXAConnectionFactory
- java.lang.Object
- com.ibm.msg.client.jms.internal.JmsReadablePropertyContextImpl
- com.ibm.msg.client.jms.internal.JmsPropertyContextImpl
- com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl
- com.ibm.msg.client.jms.admin.JmsJndiConnectionFactoryImpl
- com.ibm.mq.jms.MQConnectionFactory
- com.ibm.mq.jms.MQXAConnectionFactory
All implemented interfaces:
JmsConnectionFactory, JmsPropertyContext, JmsReadablePropertyContext, JmsXAConnectionFactory, com.ibm.msg.client.provider.ProviderPropertyContextCallback, java.io.Serializable, java.util.Map<java.lang.String,java.lang.Object>, javax.jms.ConnectionFactory, javax.jms.XAConnectionFactory, javax.naming.Referenceable
- public class MQXAConnectionFactory
- extends MQConnectionFactory
- implements JmsXAConnectionFactory, javax.jms.XAConnectionFactory
WebSphere MQ JMS exposes its JTS support in the MQXAConnectionFactory, MQXAConnection, and MQXASession classes. These classes are provided for use in a J2EE application server environment.
See Also:
Nested Class Summary
Nested classes/interfaces inherited from class com.ibm.mq.jms.MQConnectionFactory |
---|
MQConnectionFactory.ConnectionFactoryProperty |
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Constructor Summary
Constructor and Description |
---|
MQXAConnectionFactory()
Default constructor.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
createXAConnection()
Creates an XA connection with the default user identity.
|
|
createXAConnection(java.lang.String userid,java.lang.String password)
Creates an XA connection with the specified user identity.
|
Methods inherited from class com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl |
---|
equals, hashCode |
Methods inherited from class com.ibm.msg.client.jms.internal.JmsPropertyContextImpl |
---|
clear, containsKey, containsValue, entrySet, get, getObjectProperty, isEmpty, keySet, propertyExists, put, putAll, remove, setBatchProperties, setBooleanProperty, setByteProperty, setBytesProperty, setCharProperty, setDoubleProperty, setFloatProperty, setIntProperty, setLongProperty, setObjectProperty, setProviderPropertyContext, setShortProperty, setStringProperty, size, values |
Methods inherited from class com.ibm.msg.client.jms.internal.JmsReadablePropertyContextImpl |
---|
getBooleanProperty, getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getPropertyNames, getShortProperty, getStringProperty, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.msg.client.jms.JmsPropertyContext |
---|
setBatchProperties, setBooleanProperty, setByteProperty, setBytesProperty, setCharProperty, setDoubleProperty, setFloatProperty, setIntProperty, setLongProperty, setObjectProperty, setShortProperty, setStringProperty |
Methods inherited from interface com.ibm.msg.client.jms.JmsReadablePropertyContext |
---|
getBooleanProperty, getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists |
Methods inherited from interface java.util.Map |
---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from interface javax.jms.ConnectionFactory |
---|
createConnection, createConnection |
Constructor Detail
MQXAConnectionFactory
- public MQXAConnectionFactory()
Default constructor.
Method Detail
createXAConnection
- public javax.jms.XAConnection createXAConnection( )
- throws javax.jms.JMSException
Creates an XA connection with the default user identity. The connection is created in stopped mode. No
messages are delivered until the XAConnection.start() method is called explicitly.
Specified by:
createXAConnection
in interface javax.jms.XAConnectionFactory
Returns:
a newly created XA connection.
Throws:
javax.jms.JMSException
- if the JMS provider fails to create an XA connection due to some internal error. javax.jms.JMSSecurityException
- if client authentication fails due to invalid user name or password. See Also:
XAConnectionFactory.createXAConnection()
createXAConnection
- public javax.jms.XAConnection createXAConnection( java.lang.String userid,
- java.lang.String password)
- throws javax.jms.JMSException
Creates an XA connection with the specified user identity. The connection is created in stopped mode.
No messages are delivered until the XAConnection.start() method is called explicitly.
Specified by:
createXAConnection
in interface javax.jms.XAConnectionFactory
Parameters:
userid
- the user name of the caller. password
- the password of the caller. Returns:
a newly created XA connection.
Throws:
javax.jms.JMSException
- if JMS fails to create an XA connection because of an internal JMS error. javax.jms.JMSSecurityException
- if client authentication fails because the user name or password is not valid. See Also:
XAConnectionFactory.createXAConnection(java.lang.String, java.lang.String)