activemq::core::kernels::ActiveMQXASessionKernel Class Reference

#include <src/main/activemq/core/kernels/ActiveMQXASessionKernel.h>

Inheritance diagram for activemq::core::kernels::ActiveMQXASessionKernel:
Inheritance graph
[legend]

Public Member Functions

 ActiveMQXASessionKernel (ActiveMQConnection *connection, const Pointer< commands::SessionId > &sessionId, const decaf::util::Properties &properties)
virtual ~ActiveMQXASessionKernel ()
virtual bool isTransacted () const
 Gets if the Sessions is a Transacted Session.
virtual bool isAutoAcknowledge () const
virtual void doStartTransaction ()
 Starts if not already start a Transaction for this Session.
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::kernels::ActiveMQXASessionKernel::ActiveMQXASessionKernel ( ActiveMQConnection connection,
const Pointer< commands::SessionId > &  sessionId,
const decaf::util::Properties properties 
)
virtual activemq::core::kernels::ActiveMQXASessionKernel::~ActiveMQXASessionKernel (  )  [virtual]

Member Function Documentation

virtual void activemq::core::kernels::ActiveMQXASessionKernel::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::kernels::ActiveMQSessionKernel.

virtual void activemq::core::kernels::ActiveMQXASessionKernel::doStartTransaction (  )  [virtual]

Starts if not already start a Transaction for this Session.

If the session is not a Transacted Session then an exception is thrown. If a transaction is already in progress then this method has no effect.

Exceptions:
ActiveMQException if this is not a Transacted Session.

Reimplemented from activemq::core::kernels::ActiveMQSessionKernel.

virtual cms::XAResource* activemq::core::kernels::ActiveMQXASessionKernel::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::kernels::ActiveMQXASessionKernel::isAutoAcknowledge (  )  const [virtual]
virtual bool activemq::core::kernels::ActiveMQXASessionKernel::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::kernels::ActiveMQSessionKernel.

virtual void activemq::core::kernels::ActiveMQXASessionKernel::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::kernels::ActiveMQSessionKernel.


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