users@glassfish.java.net

Re: Unable to update data using Hibernate + Glassfish

From: <glassfish_at_javadesktop.org>
Date: Fri, 22 Jun 2007 07:04:52 PDT

Sahoo,

I thought that you'd like to know about this in the JPA spec. Under 5.7, I found the following:

"When a JTA application-managed entity manager is used, if the entity manager is created outside the scope of the current JTA transaction, it is the responsibility of the application to associate the entity manager with the transaction (if desired) by calling EntityManager.joinTransaction."

Not sure if this can be construed as:

When a JTA application-managed entity manager is used, if the entity manager is created outside the scope of the current JTA transaction, the provider [b]will not[/b] associate entity manager with the transaction without a call to EntityManager.joinTransaction.

Regards,
Rima.
[Message sent by forum member 'rpatel' (rpatel)]

http://forums.java.net/jive/thread.jspa?messageID=223536