public class DestinationSapStatefulSessionHandler
extends org.apache.camel.support.SynchronizationAdapter
Modifier and Type | Method and Description |
---|---|
protected void |
begin()
Begin SAP Stateful Session.
|
void |
end()
End SAP Stateful Session.
|
static void |
ensureSapStatefulSessionHasBegunAndIsHandled(org.apache.camel.Exchange exchange,
com.sap.conn.jco.JCoDestination destination)
Ensures that an SAP stateful session 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) |
public static void ensureSapStatefulSessionHasBegunAndIsHandled(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 end()
Exception
- Thrown if unable to end stateful session.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