Mohammad, There are a couple of notes on XA transactions in the user manual [1]. Have you tried them?
The javadoc of AutomaticManagedRuntime [2] mentions SunONE as supported out-of-the-box but not GlassFish, so you might need to provide your own glue code. Regards, Milosz [1] http://openjpa.apache.org/builds/latest/docs/manual/manual.html#ref_guide_enterprise_trans [2] http://openjpa.apache.org/builds/latest/docs/javadoc/org/apache/openjpa/ee/AutomaticManagedRuntime.html
