It's difficult to tell without seeing your deployment descriptor, but it
sounds like you're trying to use the PK class as a <cmp-field>.
You should not be doing this. You should instead have <cmp-field>s for
each of the fields in the PK. The only mention of the PK class in the
ejb-jar.xml should be the <prim-key-class> element.
I've found that it's pretty much necessary to read the DTDs for the
deployment descriptors.
Jeff
>-----Original Message-----
>From: faisal [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 27, 2001 11:09 AM
>To: Orion-Interest
>Subject: ONCE AGAIN !!!! PK.class & CMP beans in ORION
>
>
>Hi All
>I already asked this question long time ago.Including the pk
>class in Orion
>ejb.jar seems to be beyond my intelligence.I ve been trying to
>apply Roman
>e-commerce application from his book "Mastering Java Enterprise beans"
>.May be there is another way of making the primary key in CMP
>bean available
>to the rest of bean classes ...Any suggestion please..
>Again the problem is : when I include the pk.class among the
>cmp bean CMP
>FIELDS -the deployment descriptor can 't recognise the PK
>class of the CMP
>bean
>
>
>
>
>