public class DefaultTransactionCommitStrategy extends Object implements TransactionCommitStrategy
Constructor and Description |
---|
DefaultTransactionCommitStrategy() |
Modifier and Type | Method and Description |
---|---|
boolean |
commit(org.apache.camel.Exchange exchange)
Should returns true to allow the commit to proceed.
|
boolean |
rollback(org.apache.camel.Exchange exchange)
Should returns true to allow the commit to proceed.
|
public boolean commit(org.apache.camel.Exchange exchange) throws Exception
TransactionCommitStrategy
commit
in interface TransactionCommitStrategy
exchange
- Exchange
Session
should be committed,
otherwise falseException
public boolean rollback(org.apache.camel.Exchange exchange) throws Exception
TransactionCommitStrategy
rollback
in interface TransactionCommitStrategy
exchange
- Exchange
Session
should be committed,
otherwise falseException
Apache Camel