users@glassfish.java.net

Re: sharing persistence unit between apps

From: <glassfish_at_javadesktop.org>
Date: Wed, 27 Aug 2008 01:53:55 PDT

Thanks a lot for the follow-up.

From what I understand from this and other forums, there is no packaging scheme that would allow different applications to use the same persistence unit. I could try to find some hack to let it work under glassfish, probably in a non-portable way, but I would then face the problem that entities come from a different classloader from the one I expect... Could someone confirm this? Do someone think I have an alternative to share a persistence unit?
[Message sent by forum member 'ymajoros' (ymajoros)]

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