Skip to Content

Only one of the enlisted resources is allowed to be non two-phase commit compliant

Jul 28, 2017 at 07:47 AM


avatar image
Former Member


I have a question about two-phase commit compliant

Question is :

I want to get some data from one data source (eg. odspool ),and write these data to annother datasource (eg. wippool), In order to ensure data synchronization , i wirte the business logic to ejb

but ,this ejb will throw Exception like two-phase commit compliant

javax.ejb.EJBException: nested exception is: ResourceException occurred in method ConnectionFactoryImpl.getConnection(): The resource "odsPool" does not support two-phase commit and cannot be enlisted in the current transaction, because another non supporting two-phase commit resource is already enlisted for component

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers