users@glassfish.java.net

Re: Shared JPA entity library

From: Sahoo <Sahoo_at_Sun.COM>
Date: Fri, 09 Apr 2010 20:12:52 +0530

Currently there is no such notion of standalone entities jar deployment.
I am investigating a similar feature. Hopefully by next week, I will
have a better answer for you. At the moment, the only way a PU can be
shared by multiple modules is by packing all the modules and pu in an
ear file, but I guess that's not what you want for reasons like
concurrent development.

Thanks,
Sahoo

glassfish_at_javadesktop.org wrote:
> Hi,
>
> We have just started using Glassfish 3 and are looking to build a number of JSF web apps and EJB's as part of a larger application. Each of the modules (either local EJBs within the web app WAR's or remote EJB's for common/shared functionality) will utilise the same Oracle database and as such we would like to build a single JPA entity model which all the applications couple share (to make maintainance easier). Our reason for keeping the application as a set of smaller "modules" is to make version control/deployment/concurrent development easier (hopefully).
>
> My question is - what is the best way to go about this, I have tried budling the "entities.jar" (the one with our shared entity classes) into the domains/domain1/lib and it did not seem to work (JSF through exception about unknown entity class)?
> thanks,
> Pete
> [Message sent by forum member 'mossp']
>
> http://forums.java.net/jive/thread.jspa?messageID=396092
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>