Hi Evan
thanks for your suggestion yes i have been using
PortableRemoteObject.narrow on home.
and i have also solved the problem.
what i had to do was use PortableRemoteObject.narrow on Remote interface
to.
> -----Original Message-----
> From: Evan Ireland [SMTP:[EMAIL PROTECTED]]
> Sent: Saturday, August 19, 2000 3:20 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Class cast expection problem during finder methods
>
> "Sharan, Abhishek" wrote:
> >
> > Hi All
> > i am facing a very typical yet strange problem.
> >
> > Scenario
> > -----------
> > in the websphere test environment in VAge
> >
> > Inside Servlet ,a finder method is invoked say findByUserID which
> returns
> > Enumeration of RemoteReferneces to entitybean.
> > at the ejb layer the enumeration is being constructed properly(
> confirmed
> > through using VAge Debugger).
> >
> > when the enumeration is recieved at servlet end and we try to reterive
> > remoteref from enumeration by casting it to appropraite remoteRef class.
> > ClassCastException is thrown.
>
> Did you use javax.rmi.PortableRemoteObject.narrow to narrow the home
> reference
> before casting it?
>
> > Enironment
> > ------------------
> > Win NT workstation 4.0
> > Visual Age Enterprise Edition 3.0
> >
> > anybody faced similiar problem.
> > any pointer/help is very much apprecaited
> >
> > Thank you
> > Abhishek Sharan
> >
> >
> ==========================================================================
> =
> > 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".
>
> --
> __________________________________________________________________________
> ______
>
> Evan Ireland Sybase EAServer Engineering
> [EMAIL PROTECTED]
> Wellington, New Zealand +64 4
> 934-5856
>
> ==========================================================================
> =
> 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".