Hi Nick,

sorry i just (mis)typed out the equivalent of my code. Have
CategoryManagerHome on both sides of the expression ( the code compiles and
works fine for a test java client).

I can understand that Orion has some intermediate classes but it should
resolve to proper class when you look up the Home interface from the JNDI
which is not happening.

Another intresting thing is the intermediate class returned is __proxy3 for
a java client but sessionwrapper3 for a jsp client?

Thanks
Krishnan

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Nick Newman
Sent: Wednesday, October 11, 2000 7:49 AM
To: Orion-Interest
Subject: RE: getting EJB home from JSP


Hi Krishnan,

Is that REALLY your code?  If so, the problem is probably that you declare
the
variable on the left to be a CategoryHome, but the right hand side is a
CategoryManagerHome.

The fact that Orion returns a
CategoryManagerHome_StatelessSessionHomeWrapper3
rather than a CategoryManagerHome is expected; after all, the home is an
interface, not a class, and so cannot be instantiated.

Nick

At 11:14 AM 10/9/00 -0700, you wrote:
>
> Hi,
>
> I am casting the narrowed object properly my code is
>
> CategoryHome catHome =
>     (CategoryManagerHome)PortableRemoteObject.narrow(
> ctx.lookup("java:comp/env/CategoryManager");, CategoryManagerHome.class);
>
> but this throws up a wrong ( maybe intermediate class)
> .(CategoryManagerHome_StatelessSessionHomeWrapper3).
>
> I am using Resin as the servlet/ web server now and it works fine ( as
resin
> acts like any other java client would do).
> I would rather use orion for the full setup if i can get over with this
> problem.
>
> Thanks
> Krishnan
>





Reply via email to