Hi,
  I had presumed that you had configured OpenJPA for XATransaction with
correct configuration as Milosz points out. To verify that OpenJPA is
configured correctly to relinquish its transaction management to a external
transaction manager, do the following on the injected EntityManager:

  OpenJPAPersistence.cast(em).getConfiguration()
         .getManagedRuntimeInstance()
         .getTransactionManager();

  That should indicate whether OpenJPA configuration correctly identified
the external TM.




Miłosz Tylenda wrote:
> 
> 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
> 
> 
> 


-----
Pinaki 
-- 
View this message in context: 
http://n2.nabble.com/EntityManager-dosn-t-release-connection-in-XA-transactions-tp4205041p4208087.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to