users@glassfish.java.net

Re: Library jar with JPA entity classes

From: Matthieu Bertin <matthieu.bertin_at_hypsoma.com>
Date: Mon, 4 Apr 2011 08:40:32 +0200

The only way to achieve that would be to create a new kind of EMF that would
be aware of others concurrent EMFs.
Le 3 avr. 2011 19:18, <forums_at_java.net> a écrit :
> I haven't tried that, but would it work as you would end up with the same
EJB
> deployed across different EAR's. You would also need to package the jar as
an
> EJB and not a plain lib. Ideally I would want the library jar to be
possibly
> used outside of the container (as permitted by JPA 2) and that wont work
as
> an EJB.
>
>
> --
>
> [Message sent by forum member 'paulcb']
>
> View Post: http://forums.java.net/node/788153
>
>