Support Article
IllegalResourceIn2PCTransactionException using JMS with ADM
SA-26053
Summary
Adaptive Decision Manager (ADM) is configured with JMS running on WebSphere. When trying to complete tasks within Pega, which involve updating a database table content, saving changes fails sporadically.
Error Messages
[Date, time, and timezone] 00000044 RegisteredRes E WTRN0062E: An illegal attempt to use multiple resources that have only one-phase
capability has occurred within a global transaction.
[Date, time, and timezone] 00000044 LocalTransact E J2CA0030E: Method enlist caught
com.ibm.ws.Transaction.IllegalResourceIn2PCTransactionException: Illegal attempt to enlist multiple 1PC XAResources
at com.ibm.ws.tx.jta.RegisteredResources.enlistResource(RegisteredResources.java:870)
at com.ibm.ws.tx.jta.TransactionImpl.enlistResource(TransactionImpl.java:1804)
.
.
.
Steps to Reproduce
Unknown
Root Cause
A defect or configuration issue in the operating environment:
WebSphere groups Java database connectivity (JDBC) of jdbc/PegaRULES with the container-managed persistence (CMP) activity of JMS into a global transaction. With multiple resources in the same transaction, an XA driver is needed or configure ADM to use HTTP instead of JMS.
Resolution
Use an XA driver or apply HFix-28496.
Published July 28, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.