Skip to Content
0
Former Member
Dec 09, 2008 at 10:45 AM

netweaver 7.1 transactionmanager

15 Views

Hi,

The application is running on netweaver ce 7.1. We are using spring to create/inject our service layer and using declarative transaction management. The resources are xa resources and we are using JTA transactionmanager.

In a particular scenario we have a transaction boundary that is demarcated as 'REQUIRES_NEW' because this this has to commit/rollback separate from the current transaction. The suspend bit seems to work, but when 'begin' is called on the new transaction, we get the following exception:

Caused by: javax.transaction.SystemException: It is not possible to enlist connections into different transaction if they are already enlisted into another transaction.

at com.sap.engine.services.connector.resource.impl.ResourceSetImpl.enlistAll(ResourceSetImpl.java:497)

at com.sap.engine.services.ts.jta.impl.UserTransaction.begin(UserTransaction.java:56)

at org.springframework.transaction.jta.JtaTransactionManager.doJtaBegin(JtaTransactionManager.java:886)

at org.springframework.transaction.jta.JtaTransactionManager.doBegin(JtaTransactionManager.java:843)

Does anybody have any ideas as to a possible solution?

Regards Jaco