quality@glassfish.java.net

Re: different applications sharing ejb.jar

From: Richard Kolb <rjdkolb_at_gmail.com>
Date: Mon, 22 Feb 2010 09:52:53 +0200

Hi Felipe

2010/2/20 Felipe Gaścho <fgaucho_at_gmail.com>

>
> meanwhile, what is my alternative ?
>
> I have an ejb-jar with JPA entities and its EJB 3.1 facade .. I want
> this persistence layer module to be used by different applications,
> but I don't want to pack them all in a same EAR due to development
> environment complications.. (and time wasted with packing the EAR all
> the time..)
>

On the above, one of the developers I work with (Marius) tried to get this
going, but he could not.

I am guessing there are some ugly hacks that you could use, like SVN
external.
i.e. have two projects that share the same JPA code and persistence.xml

regards
Richard