MQXASession

public class MQXASession
extends MQSession
implements XASession
java.lang.Object
   |
   +----com.ibm.mq.jms.MQSession
           |
           +----com.ibm.mq.jms.MQXASession
          

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 XASession class if it is running in a WebSphere Application Server environment with a version of WebSphere Application Server before Version 5.

Methods

close

public void close() throws JMSException;

Closes the session.

Exceptions

commit

public void commit() throws JMSException;

Not to be called in this context.

Exceptions

getSession

public Session getSession() throws JMSException;

Gets the session associated with this XASession.

Returns
Exceptions

getTransacted

public boolean getTransacted() throws JMSException;

Indicates that XA sessions are always transacted.

Returns
Exceptions

getXAResource

public XAResource getXAResource();

Gets the XA resource.

Returns

recover

public void recover() throws JMSException;

Not to be called in this context.

Exceptions

rollback

public void rollback() throws JMSException;

Not to be called in this context.

Exceptions