users@glassfish.java.net

Re: Persistence Glassfish RESOURCE_LOCAL

From: <glassfish_at_javadesktop.org>
Date: Tue, 28 Jul 2009 19:28:35 PDT

In an application that wants to use JPA but that is getting deployed to a J2EE 1.4 container, there is no way to inject or look up an EMF (by default, i.e. unless there is special extension added somehow). In such cases the only solution would be to use Persistence.createEMF and as such use RESOURCE_LOCAL pu (unless again the JPA provider has some special support for starting a UserTransaction in the background).

Does it make sense?

thanks,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

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