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
TransactionCommitStrategycommit in interface TransactionCommitStrategyexchange - ExchangeSession should be committed,
otherwise falseExceptionpublic boolean rollback(org.apache.camel.Exchange exchange)
throws Exception
TransactionCommitStrategyrollback in interface TransactionCommitStrategyexchange - ExchangeSession should be committed,
otherwise falseExceptionApache Camel