0 Replies Latest reply on Sep 5, 2013 7:53 AM by vandiesel

    Difference between returning ic.lookup(jndiName) and PortableRemoteObject.narrow(objref, classType)

    vandiesel

      Hi,

       

      I'd like to know the diff between

       

      return PortableRemoteObject.narrow(objref, classType);

       

      and

       

      return ic.lookup(JNDIName);

       

      Can I use  " return PortableRemoteObject.narrow(objref, classType)" to lookup for the EJB beans in Jboss AS 7.1.1(;Using EJB 2.1.)