users@glassfish.java.net

Shared Persistence Unit

From: <glassfish_at_javadesktop.org>
Date: Mon, 10 Aug 2009 09:00:59 PDT

Is it possible with Glassfish to have a persistence unit that several ejb jars in an ear can share? I've tried a bunch of combinations with persistence.xml in various places: inside the ear itself, inside a "persistence module" ejb jar by itself, etc. But I can't get it to work. Has anybody successfully done this that can explain how? I've done a bunch of googling and haven't found the right clue.

I have successfully done this with JBoss 4, but the same configuration of ear and persistence jar doesn't work in Glassfish [v2.1 (9.1.1) (build b60e-fcs)].
[Message sent by forum member 'culli' (culli)]

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