users@glassfish.java.net

RE: Persistence unit ref:

From: Eve Pokua <gorgeous65_at_msn.com>
Date: Tue, 8 Dec 2009 21:24:04 +0000

Hi,

 

Should I log a test application for you to see.

I package and deploy everything in netbeans.

 

eve
 


Date: Tue, 8 Dec 2009 12:40:45 -0800
From: Vince.Kraemer_at_Sun.COM
To: users_at_glassfish.dev.java.net
Subject: Re: Persistence unit ref:

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
 

                                               
_________________________________________________________________
Got more than one Hotmail account? Save time by linking them together
 http://clk.atdmt.com/UKM/go/186394591/direct/01/