public class DestinationSapTransactionHandler
extends org.apache.camel.support.SynchronizationAdapter
Modifier and Type | Method and Description |
---|---|
protected void |
begin()
Begin SAP Transaction.
|
void |
commit()
Commit SAP Transaction.
|
static void |
ensureSapTransactionHasBegunAndIsHandled(org.apache.camel.Exchange exchange,
com.sap.conn.jco.JCoDestination destination)
Ensures that an SAP transaction for
destination has begun
and is handled in the exchange . |
boolean |
equals(Object obj) |
int |
hashCode() |
void |
onComplete(org.apache.camel.Exchange exchange) |
void |
onFailure(org.apache.camel.Exchange exchange) |
protected void |
rollback()
Rolls back SAP Transaction.
|
public static void ensureSapTransactionHasBegunAndIsHandled(org.apache.camel.Exchange exchange, com.sap.conn.jco.JCoDestination destination)
destination
has begun
and is handled in the exchange
.exchange
- - the associated exchange.destination
- the associated destination.protected void begin()
public void commit() throws Exception
Exception
- Thrown if unable to commit transaction.protected void rollback() throws Exception
Exception
- Thrown if unable to roll back transaction.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 void onFailure(org.apache.camel.Exchange exchange)
onFailure
in interface org.apache.camel.spi.Synchronization
onFailure
in class org.apache.camel.support.SynchronizationAdapter
Apache Camel