public class SessionTransactionSynchronization extends Object implements Synchronization
org.apache.camel.Exhcnage
.Constructor and Description |
---|
SessionTransactionSynchronization(javax.jms.Session session,
TransactionCommitStrategy commitStrategy) |
Modifier and Type | Method and Description |
---|---|
void |
onComplete(Exchange exchange)
Called when the processing of the message exchange is complete
|
void |
onFailure(Exchange exchange)
Called when the processing of the message exchange has failed for some reason.
|
public SessionTransactionSynchronization(javax.jms.Session session, TransactionCommitStrategy commitStrategy)
public void onFailure(Exchange exchange)
Synchronization
Exchange.getException()
and
there could be a fault message via Message.isFault()
onFailure
in interface Synchronization
exchange
- Synchronization.onFailure(org.apache.camel.Exchange)
public void onComplete(Exchange exchange)
Synchronization
onComplete
in interface Synchronization
exchange
- Synchronization.onComplete(org.apache.camel.Exchange
)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.