users@glassfish.java.net

One persistence.xml for multiple entity bean jar files

From: <glassfish_at_javadesktop.org>
Date: Tue, 17 Jun 2008 05:58:52 PDT

Hello,

for compatibility reasons we are using make files which create separate jar files for each package. The are multiple packages with entity beans. Currently each package (and each jar file) contains a persistence.xml and the names of persistence units are different for each package.

I tried to put the persistence.xml into a separate jar file and not along with the entity bean jar files. But this failed. Then i put the persistence.xml file into each entity bean jar file (like original configuration) but in this case each persistence.xml contained a persistence unit element with the same name. This configuration worked fine.

Does someone has some suggestions how to handle this setup?

Regards,
Christian
[Message sent by forum member 'cplaetzinger' (cplaetzinger)]

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