Class XASession

  • All Implemented Interfaces:
    AutoCloseable, Runnable, Session, XASession
    Direct Known Subclasses:
    XAQueueSession, XATopicSession

    public class XASession
    extends Object
    implements XASession
    Implements the javax.jms.XASession interface.

    An XA session actually extends the behaviour of a normal session by providing an XA resource representing it to a Transaction Manager, so that it is part of a distributed transaction. The XASession wraps what looks like a "normal" Session object. This object takes care of producing and consuming messages, the actual sendings and acknowledgement being managed by this XA wrapper.

    This class offers support to transactional environments. Client programs are strongly encouraged to use the transactional support available in their environment, rather than use these XA interfaces directly.