users@glassfish.java.net

JPA and multiple entities jar

From: <glassfish_at_javadesktop.org>
Date: Wed, 09 May 2007 09:01:23 PDT

I tried to have two JPA entities jar file inside an ear application on Glassfish, but:

1) if I insert META-INF/persistence.xml in both the JPA jar the correspondent ear don't deploy on glassfish
2) if I insert the META-INF/persistence.xml only in the first JPA jar file, the ear deploy but when I try to use a NamedQuery or an Entity from the second JPA jar file I get a TOPLINK-8006 error.

Is not possible to have two entities file?

Thanks, bye Sergio
[Message sent by forum member 'smoretto' (smoretto)]

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