MQXAConnectionFactory

public class MQXAConnectionFactory
extends MQConnectionFactory
implements XAConnectionFactory
java.lang.Object
   |
   +----com.ibm.mq.jms.MQConnectionFactory
           |
           +----com.ibm.mq.jms.MQXAConnectionFactory
          

The MQXAConnectionFactory interface is an implementation of XAConnectionFactory interface.

WebSphere MQ JMS exposes its JTS support in the XAConnectionFactory , XAConnection, and XASession classes. These classes are provided for use in a J2EE application server environment.

WebSphere Application Server Version 5 uses these classes to create and manage a pool of XAConnection and XASession objects. A JMS application does not need to use these classes directly if it is running in this environment.

A JMS application might need to use the XAConnectionFactory class if it is running in a WebSphere Application Server environment with a version of WebSphere Application Server before Version 5.

Constructors

MQXAConnectionFactory

public MQXAConnectionFactory();

Default constructor.

Methods

createXAConnection

public XAConnection createXAConnection() throws 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.

Returns
Exceptions

createXAConnection

public XAConnection createXAConnection(String userName, String password) 
              throws 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.

Parameters
Returns
Exceptions