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

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

    Nav Diesel Newbie

      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.)