public class DestinationRfcTransactionHandler
extends org.apache.camel.support.SynchronizationAdapter
Modifier and Type | Field and Description |
---|---|
static String |
TID_HANDLER_MAP_PROPERTY_KEY |
Modifier and Type | Method and Description |
---|---|
protected void |
confirmTids()
Confirm the RFC transactions managed by this handler.
|
boolean |
equals(Object obj) |
protected String |
getTID(org.apache.camel.Exchange exchange)
Return a TID managed by this handler, creating if necessary.
|
static String |
getTID(org.apache.camel.Exchange exchange,
com.sap.conn.jco.JCoDestination destination)
Returns the ID of the current RFC transaction associated with
destination in exchange . |
int |
hashCode() |
void |
onComplete(org.apache.camel.Exchange exchange) |
void |
onFailure(org.apache.camel.Exchange exchange) |
public static final String TID_HANDLER_MAP_PROPERTY_KEY
public static String getTID(org.apache.camel.Exchange exchange, com.sap.conn.jco.JCoDestination destination) throws Exception
destination
in exchange
. Also ensures that an
RFC transaction for destination
has begun and is handled by
exhange
.exchange
- - the associated exchange.destination
- - the associated destination.destination
in exchange
.Exception
- Thrown if unable to return TID.protected String getTID(org.apache.camel.Exchange exchange) throws Exception
exchange
- - the exchange this tid is used in.Exception
- Thrown if unable to return TID.protected void confirmTids()
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