The correct form is:
MyBeanHome home = (EJBHome) PortableRemoteObject.narrow(
ctx.lookup(JNDI_NAME),
MyBeanHome.class);
cheesr
dim
On Fri, 27 Jul 2001, Toby Hede wrote:
> I keep seeing code samples that use the followng syntaxt:
>
> Object ref = ctx.l
Message-
From: Toby Hede [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 27, 2001 07:59
To: [EMAIL PROTECTED]
Subject:[JBoss-user] using
PortableRemoteObject.narrow
I keep seeing code samples that use the
Hi.
For JBoss as with many app/ejb servers both are valid.
However the second is not valid on some RMI-IIOP servers (IAS/BAS at
least).
If you want speed and lower your portability use the second (no
PortableRemoteObject).
If you want portability... Well... A narrow is needed to us
I keep seeing code samples that use the followng syntaxt:
Object ref = ctx.lookup(EJBHome.JNDI_NAME);
EJBHome home = (EJBHome) PortableRemoteObject.narrow(ref, EJBHome.class);
I also see other samples that use the following:
EJBHome home Object ref = (EJBHome) ctx.lookup(EJBHome.JNDI_N