• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to solve the Transaction.IllegalResourceIn2PCTransactionException

 
Jambulingam T
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Please give the solution to solve the the below error,

RegisteredRes E WTRN0062E: An illegal attempt to use multiple resources that have only one-phase capability has occurred within a global transaction

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:863)
at com.ibm.ws.tx.jta.TransactionImpl.enlistResource(TransactionImpl.java:1688)
at com.ibm.ws.tx.jta.TranManagerSet.enlistOnePhase(TranManagerSet.java:578)
at com.ibm.ejs.j2c.LocalTransactionWrapper.enlist(LocalTransactionWrapper.java:587)

Thanks in Advance.
 
Devaka Cooray
Marshal
Posts: 5168
485
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using WebSphere?
 
Sibi Joseph
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Devaka Cooray wrote:Are you using WebSphere?


Hi Devaka

I am facing the same problem on Websphere Application Server 7.0.0.7. I would be greatful if you could post the solution.

Regards
Sibi
 
Antony John
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please try using
@TransactionAttribute(TransactionAttributeType.REQUIRED)
with your method which calls the DB operation.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!