activemq::core::ActiveMQXASession Class Reference

#include <src/main/activemq/core/ActiveMQXASession.h>

Inheritance diagram for activemq::core::ActiveMQXASession:
Inheritance graph
[legend]

Public Member Functions

 ActiveMQXASession (Pointer< activemq::core::kernels::ActiveMQXASessionKernel > kernel)
virtual ~ActiveMQXASession ()
virtual bool isTransacted () const
 Gets if the Sessions is a Transacted Session.
virtual bool isAutoAcknowledge () const
virtual void doStartTransaction ()
virtual void commit ()
 Commits all messages done in this transaction and releases any locks currently held.
virtual void rollback ()
 Rolls back all messages done in this transaction and releases any locks currently held.
virtual cms::XAResourcegetXAResource () const
 Returns the XA resource associated with this Session to the caller.

Constructor & Destructor Documentation

activemq::core::ActiveMQXASession::ActiveMQXASession ( Pointer< activemq::core::kernels::ActiveMQXASessionKernel kernel  ) 
virtual activemq::core::ActiveMQXASession::~ActiveMQXASession (  )  [virtual]

Member Function Documentation

virtual void activemq::core::ActiveMQXASession::commit (  )  [virtual]

Commits all messages done in this transaction and releases any locks currently held.

Exceptions:
CMSException - If an internal error occurs.
IllegalStateException - if the method is not called by a transacted session.

Reimplemented from activemq::core::ActiveMQSession.

virtual void activemq::core::ActiveMQXASession::doStartTransaction (  )  [virtual]
virtual cms::XAResource* activemq::core::ActiveMQXASession::getXAResource (  )  const [virtual]

Returns the XA resource associated with this Session to the caller.

The client can use the provided XA resource to interact with the XA Transaction Manager in use in the client application.

Returns:
an XAResouce instance to the caller, the caller does not own this pointer and should not delete it.

Implements cms::XASession.

virtual bool activemq::core::ActiveMQXASession::isAutoAcknowledge (  )  const [virtual]
virtual bool activemq::core::ActiveMQXASession::isTransacted (  )  const [virtual]

Gets if the Sessions is a Transacted Session.

Returns:
transacted true - false.
Exceptions:
CMSException - If an internal error occurs.

Reimplemented from activemq::core::ActiveMQSession.

virtual void activemq::core::ActiveMQXASession::rollback (  )  [virtual]

Rolls back all messages done in this transaction and releases any locks currently held.

Exceptions:
CMSException - If an internal error occurs.
IllegalStateException - if the method is not called by a transacted session.

Reimplemented from activemq::core::ActiveMQSession.


The documentation for this class was generated from the following file:

Generated on 1 Dec 2014 for activemq-cpp-3.8.2 by  doxygen 1.6.1