Accessing the AS Java Transaction
Manager
Use the following classes:
● com.sap.transaction.TxException
● com.sap.transaction.TxManager;
● com.sap.transaction.TransactionTicket
● com.sap.transaction.TxRollbackException
Do not use the JNDI-Lookup or SAPAdapterResource any longer.

Open SPIMangedConnectionFactory.java and search for the character string CS_LUWBEGIN (transaction begin), CS_LUWROLLBACK (transaction rollback), and CS_LUWCOMMIT (transaction commit).
● Then, use the TransactionTicket instance.
More information: Transactions for the Asynchronous Sender Direction