Phani,

If you read the deployment descriptor it has something like this in it:

        <home>examples.ejb.basic.beanManaged.AccountHome</home>
        <remote>examples.ejb.basic.beanManaged.Account</remote>
        <ejb-class>examples.ejb.basic.beanManaged.AccountBean</ejb-class>
        <persistence-type>Bean</persistence-type>
        <prim-key-class>java.lang.String</prim-key-class>


This tells you all the classes that make up the bean. Note that the last entry there 
is the Primary Key class. In this example they are using the java.lang.String class 
instead of making up their own Primary Key class.

Hope that this helps?
Regards
IV

>  from:    phani <[EMAIL PROTECTED]>
>  date:    Mon, 24 Jun 2002 09:05:48
>  to:      [EMAIL PROTECTED]
>  subject: Re: Need some examples
>
> Hi vellosa,
> Thanks for the info.
>
> I checked the sample dir. But I have read that the entity bean must require
> an Primary key class.
> But i don't find any primary key class in the
> samples/examples/ejb/basic/beanManaged
> I have account.java(Remote) accountHome.java(Home) accountBean.java(EJB) and
> client.java but where is Primary Key class.
>
> Thanks for the help
> phani
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Monday, June 24, 2002 1:24 PM
> Subject: Re: Need some examples
>
>
> > Hi Phani,
> >
> > I am using WebLogic 6.1 and there in the directory:
> >
> >   C:\bea\wlserver6.1\samples\examples
> >
> > I have a whole set of examples for everything you could ever need to do on
> WebLogic, well quite a bit anyway. There are examples of EJB 1.1 and 2.0
> BMP, CMP and even Message Driven Beans. I'm sure you must have something
> similar under your 6.0 instalation?
> >
> > Regards
> > IV
> >
> >
> >
> > >  from:    phani <[EMAIL PROTECTED]>
> > >  date:    Mon, 24 Jun 2002 08:41:58
> > >  to:      [EMAIL PROTECTED]
> > >  subject: Re: Need some examples
> > >
> > > Hi,
> > >   I am new bie to ejb and i am messed with deploying entity beans on
> WL6.0
> > >
> > >    I need some basic examples for entity beans (both cmp and bmp)
> specific to weblogic 6.0 so that i can deploy and run without any
> modifications.
> > >
> > >  Are there any examples available with WL6.0 specific xml files?
> > > I searched the web but no luck.
> > >
> > > Thanks for any help
> > > phani
> > >
> > >
> > >
> >
> >
> >
> >
> http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21&placemen
> t=home_multi.gif&site=amazon
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to