Problem
Local transaction already has 1 non-XA Resource: cannot add more resources
Cause
JavaEE cannot handle transactions which have 2 more resource and one of them is non-XA resource
Solution
Config all resource into XAResource
Example
Config XAResource for Postgresql on Glassfish, using JDBC Connection Pool
Resource Type: javax.sql.XADataSource
Datasource Classname: org.postgresql.xa.PGXADataSource
No comments:
Post a Comment