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, started
logger
STATUS_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, setRollbackOnly
fireNotification, isBegun, isCommitted, isRollbackOnly, isRolledBack, isXA, resume, suspend
public void setMessage(javax.jms.Message message)
protected void doBegin() throws TransactionException
AbstractTransaction
doBegin
in class AbstractTransaction
TransactionException
protected void doCommit() throws TransactionException
AbstractTransaction
doCommit
in class AbstractTransaction
TransactionException
protected void doRollback() throws TransactionException
AbstractTransaction
doRollback
in class AbstractTransaction
TransactionException
public void bindResource(Object key, Object resource) throws TransactionException
bindResource
in interface Transaction
bindResource
in class AbstractSingleResourceTransaction
TransactionException
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.