users@glassfish.java.net

Re: Custom realm using entity beans - is it possible?

From: <glassfish_at_javadesktop.org>
Date: Fri, 21 Sep 2007 14:56:58 PDT

Does it work if you try to lookup the datasource yourself at the time of creating an EMF/EM?

If you are using your entities in read-only mode or do not plan to access them as part of a JTA transaction, you might want to try to switch to the jdbc properties in the persistence.xml (comment out or remove the datasource ref) and change the transaction type to RESOURCE_LOCAL.

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

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