Prasobh.Kollattu
Prasobh.Kollattu

Reputation: 1701

EJB 3 : An illegal attempt to commit a one phase capable resource with existing two phase capable resources has occurred

Recently we have migrated our EJB2 application to EJB 3.Now we are facing following error.

An illegal attempt to commit a one phase capable resource with existing two phase capable resources has occurred.

We are doing an XA datasource based transaction first, then Non-XA and finally an XA.

Seems like NON-XA after an XA is causing the issue.

This was working fine with EJB2.

Could someone help us on this.

Thanks in advance.

Upvotes: 0

Views: 949

Answers (1)

altenbue
altenbue

Reputation: 54

It sounds like you're using a resource that isn't two-phase XA enabled (possibly the database driver)? I'm not an expert in this, but this blog might be of use:

https://www.ibm.com/developerworks/community/blogs/aimsupport/entry/trace_analysis_wtrn0063e?lang=en

Upvotes: 1

Related Questions