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

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::XAResource * | getXAResource () const |
| Returns the XA resource associated with this Session to the caller. | |
| activemq::core::kernels::ActiveMQXASessionKernel::ActiveMQXASessionKernel | ( | ActiveMQConnection * | connection, | |
| const Pointer< commands::SessionId > & | sessionId, | |||
| const decaf::util::Properties & | properties | |||
| ) |
| virtual activemq::core::kernels::ActiveMQXASessionKernel::~ActiveMQXASessionKernel | ( | ) | [virtual] |
| virtual void activemq::core::kernels::ActiveMQXASessionKernel::commit | ( | ) | [virtual] |
Commits all messages done in this transaction and releases any locks currently held.
| 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.
| 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.
Implements cms::XASession.
| virtual bool activemq::core::kernels::ActiveMQXASessionKernel::isAutoAcknowledge | ( | ) | const [virtual] |
Reimplemented from activemq::core::kernels::ActiveMQSessionKernel.
| virtual bool activemq::core::kernels::ActiveMQXASessionKernel::isTransacted | ( | ) | const [virtual] |
Gets if the Sessions is a Transacted Session.
| 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.
| CMSException | - If an internal error occurs. | |
| IllegalStateException | - if the method is not called by a transacted session. |
Reimplemented from activemq::core::kernels::ActiveMQSessionKernel.
1.6.1