com.ibm.mq.jms

Class MQXASession

  • All Implemented Interfaces:
    JmsPropertyContext, JmsReadablePropertyContext, JmsSession, java.io.Serializable, java.lang.AutoCloseable, java.lang.Runnable, java.util.Map<java.lang.String,java.lang.Object>, javax.jms.Session, javax.jms.XASession
    Direct Known Subclasses:
    MQXAQueueSession, MQXATopicSession


    public class MQXASession
    extends MQSession
    implements javax.jms.XASession
    IBM 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.
    See Also:
    Serialized Form
    • Method Detail

      • getSession

        public javax.jms.Session getSession()
                                     throws javax.jms.JMSException
        Gets the session associated with this XA session.
        Specified by:
        getSession in interface javax.jms.XASession
        Returns:
        the session
        Throws:
        javax.jms.JMSException - never
        See Also:
        XASession.getSession()
      • getXAResource

        public javax.transaction.xa.XAResource getXAResource()
        Gets the XA resource.
        Specified by:
        getXAResource in interface javax.jms.XASession
        Returns:
        the XA resource
        See Also:
        XASession.getXAResource()
      • isClosed

        public boolean isClosed()
        Returns:
        whether the underlying session is closed
(c) Copyright IBM Corp. 2008, 2016. All Rights Reserved.