Hi all,
I am getting as to how the PortableRemoteObject.narrow helps when compared
to the simple cntxt.lookup!!!. The code is given below
Object objref = ctx.lookup("pool.Register");
RegisterHome registerhome =
(RegisterHome)PortableRemoteObject.narrow(objref,
connectpool.RegisterHome.class);
compared to
RegisterHome registerhome = (RegisterHome) ctx.lookup("pool.Register");
Hey, to me it seems the 1st one increases the # of lines of code!!!! but
what values does it add???
Any help to clear this doubt is appreciated.
TIA
Anamitra



===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to