org.apache.camel.component.sjms.tx
Class SessionTransactionSynchronization
java.lang.Object
org.apache.camel.component.sjms.tx.SessionTransactionSynchronization
- All Implemented Interfaces:
- org.apache.camel.spi.Synchronization
public class SessionTransactionSynchronization
- extends Object
- implements org.apache.camel.spi.Synchronization
SessionTransactionSynchronization is called at the completion of each org.apache.camel.Exhcnage
.
Method Summary |
void |
onComplete(org.apache.camel.Exchange exchange)
|
void |
onFailure(org.apache.camel.Exchange exchange)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionTransactionSynchronization
public SessionTransactionSynchronization(javax.jms.Session session,
TransactionCommitStrategy commitStrategy)
onFailure
public void onFailure(org.apache.camel.Exchange exchange)
- Specified by:
onFailure
in interface org.apache.camel.spi.Synchronization
- Parameters:
exchange
- - See Also:
Synchronization.onFailure(org.apache.camel.Exchange)
onComplete
public void onComplete(org.apache.camel.Exchange exchange)
- Specified by:
onComplete
in interface org.apache.camel.spi.Synchronization
- Parameters:
exchange
- - See Also:
Synchronization.onComplete(org.apache.camel.Exchange
)
Apache Camel