Actually HE's not calling ejbFindByPrimaryKey...  The code snipped below is
the Weblogic-generated implementation of his Home interface, and like I said
in a previous response, I believe the reason weblogic.ejbc is complaining is
because he is mistakenly returning his User interface in his UserBeans
ejbFindByPrimaryKey when he should be returning the primary key.

Gene

-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Jean-Baptiste Nizet
Sent: Wednesday, July 12, 2000 5:31 AM
To: [EMAIL PROTECTED]
Subject: Re: weblogic ejbc error


Naresh Sharma wrote:

> hello everybody,
>
> I am sorry again for posting weblogic specific
> question.
>
>         As u know While creating deployable jar file with
> ejbc tool, ejbc generates some java classes and after
> compilation deletes them.
>
>         But while creating the deployable jar file i am
> getting the following error in comilation of ejbc
> generated java classes.
>
> UserBeanHomeImpl.java:81: Incompatible type for =.
> Explicit cast needed to convert com.xyz.User to
> com.xyz.UserPK.
>         pk = dummyBean.ejbFindByPrimaryKey(pk);
>

You should never call the ejbFindByPrimaryKey method. This method is called
by
the container when the client invokes the corresponding finder method in the
home interface. And the finder method returns a remote reference, not the
primary key (BTW, what would be the help of this method if it returned the
primary key, you'd better do pk = pk!).

JB.

>
> any clue what to do ??
>
> Thanks
> Naresh
>
> __________________________________________________
> Do You Yahoo!?
> Get Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
>
>
===========================================================================
> 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".

--
Jean-Baptiste Nizet
[EMAIL PROTECTED]

R&D Engineer, S1 Belgium
Kleine Kloosterstraat, 23
B-1932 Sint-Stevens Woluwe
+32 2 200 45 42

===========================================================================
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