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.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_NAME);   
> 
> What is the correct format in JBoss (I have used the latter)
> 
> /t
> Toby Hede
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to