org.mule.transport.jms
Class JmsClientAcknowledgeTransaction
java.lang.Object
org.mule.transaction.AbstractTransaction
org.mule.transaction.AbstractSingleResourceTransaction
org.mule.transport.jms.JmsClientAcknowledgeTransaction
- All Implemented Interfaces:
- Transaction
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.
JmsClientAcknowledgeTransaction
public JmsClientAcknowledgeTransaction(MuleContext muleContext)
setMessage
public void setMessage(Message message)
doBegin
protected void doBegin()
throws TransactionException
- Description copied from class:
AbstractTransaction
- Really begin the transaction. Note that resources are enlisted yet.
- Specified by:
doBegin
in class AbstractTransaction
- Throws:
TransactionException
doCommit
protected void doCommit()
throws TransactionException
- Description copied from class:
AbstractTransaction
- Commit the transaction on the underlying resource
- Specified by:
doCommit
in class AbstractTransaction
- Throws:
TransactionException
doRollback
protected void doRollback()
throws TransactionException
- Description copied from class:
AbstractTransaction
- Rollback the transaction on the underlying resource
- Specified by:
doRollback
in class AbstractTransaction
- Throws:
TransactionException
bindResource
public void bindResource(Object key,
Object resource)
throws TransactionException
- Specified by:
bindResource
in interface Transaction
- Overrides:
bindResource
in class AbstractSingleResourceTransaction
- Throws:
TransactionException
supports
public boolean supports(Object key,
Object resource)
- Specified by:
supports
in interface Transaction
- Overrides:
supports
in class AbstractSingleResourceTransaction
- Parameters:
key
- transactional resource key (i.e jdbc DataSource or jms Connection)resource
- transactional resource (i.e. jdbc Connection or jms Session)
- Returns:
- true if the current transaction supports to bind transactional resources key and resource
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.