users@glassfish.java.net

Re: Question about Java Persistence packaging...

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Wed, 30 Aug 2006 13:51:12 -0700

Just don't forget to list that jar (in related path
to PU) in persistence.xml :).

thanks,
-marina

Manfred Riem wrote On 08/30/06 12:04,:
> Hi there,
>
> As far as I understand it you don't need to have a persistence.xml file
> in a JAR file. You will have to have it in your deployable unit somewhere.
>
> So if you are deploying a web application you can have:
>
> Web-application containing:
> /WEB-INF/classes/META-INF/persistence.xml
> /WEB-INF/lib/your.jar
> Kind regards,
> Manfred Riem
> mriem_at_manorrock.org <mailto:mriem_at_manorrock.org>
> http://www.manorrock.org/
>
>
> -------- Original Message --------
> Subject: Question about Java Persistence packaging...
> From: vince kraemer <Vince.Kraemer_at_Sun.COM>
> Date: Wed, August 30, 2006 2:02 pm
> To: users_at_glassfish.dev.java.net
>
> If I have a jar that has Entity classes, does the jar need to contain a
> persistence.xml file (according to the spec)?
>
> If the file is not necessary, is there a use-case where a user would
> need to create one and insert it into a jar to make that jar deployable?
>
> Thanks,
> vbk
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net For
> additional commands, e-mail: users-help_at_glassfish.dev.java.net