public class JmsClientAcknowledgeTransaction extends AbstractSingleResourceTransaction
JmsClientAcknowledgeTransaction is a transaction implementation of
performing a message acknowledgement. There is no notion of rollback with client
acknowledgement, but this transaction can be useful for controlling how messages
are consumed from a destination.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 |
|---|
JmsClientAcknowledgeTransaction() |
| 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
|
void |
setMessage(javax.jms.Message message) |
begin, commit, getId, getResource, getStatus, hasResource, rollback, setRollbackOnlyfireNotification, isBegun, isCommitted, isRollbackOnly, isRolledBack, isXA, resume, suspendpublic void setMessage(javax.jms.Message message)
protected void doBegin()
throws TransactionException
AbstractTransactiondoBegin in class AbstractTransactionTransactionExceptionprotected void doCommit()
throws TransactionException
AbstractTransactiondoCommit in class AbstractTransactionTransactionExceptionprotected void doRollback()
throws TransactionException
AbstractTransactiondoRollback in class AbstractTransactionTransactionExceptionpublic void bindResource(Object key, Object resource) throws TransactionException
bindResource in interface TransactionbindResource in class AbstractSingleResourceTransactionTransactionExceptionCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.