public class JmsTransaction extends AbstractSingleResourceTransaction
JmsTransaction is a wrapper for a JMS local transaction. This
object holds the JMS session and controls when the transaction is committed or
rolled back.committed, key, resource, rollbackOnly, rolledBack, startedloggerSTATUS_ACTIVE, STATUS_COMMITTED, STATUS_COMMITTING, STATUS_MARKED_ROLLBACK, STATUS_NO_TRANSACTION, STATUS_PREPARED, STATUS_PREPARING, STATUS_ROLLEDBACK, STATUS_ROLLING_BACK, STATUS_UNKNOWN| Constructor and Description |
|---|
JmsTransaction() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindResource(Object key,
Object resource) |
protected void |
doBegin()
Really begin the transaction.
|
protected void |
doCommit()
Commit the transaction on the underlying resource
|
protected void |
doRollback()
Rollback the transaction on the underlying resource
|
begin, commit, getId, getResource, getStatus, hasResource, rollback, setRollbackOnlyfireNotification, isBegun, isCommitted, isRollbackOnly, isRolledBack, isXA, resume, suspendpublic void bindResource(Object key, Object resource) throws TransactionException
bindResource in interface TransactionbindResource in class AbstractSingleResourceTransactionTransactionExceptionprotected void doBegin()
throws TransactionException
AbstractTransactiondoBegin in class AbstractTransactionTransactionExceptionprotected void doCommit()
throws TransactionException
AbstractTransactiondoCommit in class AbstractTransactionTransactionExceptionprotected void doRollback()
throws TransactionException
AbstractTransactiondoRollback in class AbstractTransactionTransactionExceptionCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.