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.Synchronization
onFailure
in class org.apache.camel.support.SynchronizationAdapter
public void onComplete(org.apache.camel.Exchange exchange)
onComplete
in interface org.apache.camel.spi.Synchronization
onComplete
in class org.apache.camel.support.SynchronizationAdapter
public boolean allowHandover()
allowHandover
in interface org.apache.camel.spi.SynchronizationVetoable
allowHandover
in class org.apache.camel.support.SynchronizationAdapter
Apache Camel