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".
- PortableRemoteObject.narrow Richard Monson-Haefel
- Re: PortableRemoteObject.narrow Srinivas Hasti
- Re: PortableRemoteObject.narrow Bailey, Jeff
- Re: PortableRemoteObject.narrow Richard Monson-Haefel
- Re: PortableRemoteObject.narrow Vlada Matena
- Re: PortableRemoteObject.narrow Evan Ireland
- Re: PortableRemoteObject.narrow Tye, Tim
- Re: PortableRemoteObject.narrow Errol CONS:Fernandes
- Re: PortableRemoteObject.narrow Bhattacharyya, Ana
- Re: PortableRemoteObject.narrow Mike Clark
- Re: PortableRemoteObject.narrow Eyal Hirsch
- Re: PortableRemoteObject.narrow Robert Patrick
- Re: PortableRemoteObject.narrow Robert Castaneda
- Re: PortableRemoteObject.narrow James Cook
- Re: PortableRemoteObject.narro... Rickard �berg
- Re: PortableRemoteObject.n... James Cook
- Re: PortableRemoteObject.narrow Parikshit Pol
- Re: PortableRemoteObject.narrow Jean-Baptiste Nizet
- Re: PortableRemoteObject.narrow Parikshit Pol
