users@glassfish.java.net

Re: Persistence unit ref:

From: Vince Kraemer <Vince.Kraemer_at_Sun.COM>
Date: Tue, 08 Dec 2009 12:40:45 -0800

I have never heard of NB putting the persistence.xml file ing to
META-INF directory of an EAR file.

I would be interested in seeing the cluster of projects that does
something like that.

Thanks,
vbk

On 12/05/09 06:43, Eve Pokua wrote:
> Marina,
>
> I am using netbeans to build and deploy my application. Netbeans
> already packages entity classes as well as the per.xml inside the
> META-INF dir. According to the following thread. When it's package
> this way, it is ignored-
>
> >
> http://old.nabble.com/PersistenceContext-and-the-verifier-td15864706.html
> >
> > and
> >
> > "
> > Verifier is correct, *thee* message *could* be better though. Having
> said
> > that, where did you read that it is OK *to* put *persistence*.xml in
> > META-INF directory of *the* ear file. If you put *persistence*.xml in
> > META-INF of ear, it is simply ignored. *If you want your
> > *persistence*-*units* *to* be visible *all* modules in *the* ear file,
> > *then* put in
> > *a* library jar. *The* easiest way of doing it is *add* *all* entity
> > classes *and*
> > META-INF/*persistence*.xml into *a* jar file (say) entities.jar *and*
> > package
> > it in lib directory of *the* ear file.
> *>
> > Thanks,
> > Sahoo "
>
>
> Sahoo wrote this. Fixing such problem is in bold.
>
> Thanking you.
>
> eve
>