Reputation: 1701
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
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