is it neccassary to narrow the object
843829Apr 3 2004 — edited Apr 5 2004hi
in client side i have written like this;
ctx = new InitialContext(ht);
java.lang.Object obj = ctx.lookup("RemoteCabinHome");
CabinHome home = (CabinHome) PortableRemoteObject.narrow(obj, CabinHome.class);
Why did we write narrow () method in EJB? Is it necessary to write?what PortableRemoteObject will do here?
can't we write directly like this?
ctx = new InitialContext(ht);
CabinHome home = (CabinHome) ctx.lookup("RemoteCabinHome");
bye
chaitanya