org.apache.camel.component.sjms.tx
Class SessionBatchTransactionSynchronization

java.lang.Object
  extended by org.apache.camel.component.sjms.tx.SessionBatchTransactionSynchronization
All Implemented Interfaces:
org.apache.camel.spi.Synchronization

public class SessionBatchTransactionSynchronization
extends Object
implements org.apache.camel.spi.Synchronization

SessionTransactionSynchronization is called at the completion of each Exchange.


Nested Class Summary
 class SessionBatchTransactionSynchronization.TimeoutTask
           
 
Constructor Summary
SessionBatchTransactionSynchronization(TimedTaskManager timedTaskManager, javax.jms.Session session, TransactionCommitStrategy commitStrategy, long batchTransactionTimeout)
           
 
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
 

Constructor Detail

SessionBatchTransactionSynchronization

public SessionBatchTransactionSynchronization(TimedTaskManager timedTaskManager,
                                              javax.jms.Session session,
                                              TransactionCommitStrategy commitStrategy,
                                              long batchTransactionTimeout)
Method Detail

onFailure

public void onFailure(org.apache.camel.Exchange exchange)
Specified by:
onFailure in interface org.apache.camel.spi.Synchronization

onComplete

public void onComplete(org.apache.camel.Exchange exchange)
Specified by:
onComplete in interface org.apache.camel.spi.Synchronization


Apache Camel