Tags

SAP adapter's transactionality behavior

SAP Adapter supports transactions in 2 flavors. "Local Transaction" and "No Transaction".It does not support "XA transaction". If you are planning to use the SAP adapter with in your integration flow, then you should use the SAP Adapter with transaction support. Then you will be able to use it just like any other local transaction capable SCA resource. You will be able to make it participate in a transaction and use the transaction qualifiers- Global or local to control the scope of the transaction. Also, you will be able to use the Join transaction qualifier, to make the adapter participate in the transaction. Once, the join transaction is set on the adapter and the Global transaction is set on the invoking component, the adapter along with other components in the flow with either commit or rollback atomically.

One important point to remember here is that the SAP adapter can participate in the transaction(join transaction set to true) only if all other SCA resources are capable of local transaction or XA transaction. "No Transaction " resources will not be able to participate in the transaction.