public class SessionTransactionSynchronization
extends org.apache.camel.support.SynchronizationAdapter
Exchange.
The commit or rollback on the Session must be performed from the same thread that consumed the message.| Constructor and Description |
|---|
SessionTransactionSynchronization(javax.jms.Session session,
TransactionCommitStrategy commitStrategy) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowHandover() |
void |
onComplete(org.apache.camel.Exchange exchange) |
void |
onFailure(org.apache.camel.Exchange exchange) |
public SessionTransactionSynchronization(javax.jms.Session session,
TransactionCommitStrategy commitStrategy)
public void onFailure(org.apache.camel.Exchange exchange)
onFailure in interface org.apache.camel.spi.SynchronizationonFailure in class org.apache.camel.support.SynchronizationAdapterpublic void onComplete(org.apache.camel.Exchange exchange)
onComplete in interface org.apache.camel.spi.SynchronizationonComplete in class org.apache.camel.support.SynchronizationAdapterpublic boolean allowHandover()
allowHandover in interface org.apache.camel.spi.SynchronizationVetoableallowHandover in class org.apache.camel.support.SynchronizationAdapterApache Camel