If I have a bunch of XA resources and one non-XA resource, can I use them in an XA transaction? Will JBoss reorder the resources so that the non-XA resource is committed at the end of the first phase?
Here's an example:
Resource1: XA
Resource2: non-XA
Resource3: XA
Commit does the following:
- Prepare Resource1
- Prepare Resource3
- Commit Resource2 (1-phase)
- Commit Resource1
- Commit Resource3
Currently no. It's implemented in 4.0 but have not been backported AFAIK.