Hi,
But isnt PortableRemoteObject a part of jdk1.3? We dont have a production realease of 
jdk1.3 as yet. So we cant use it in out projects.
Parikshit

-----Original Message-----
From:   Bhattacharyya, Ana [SMTP:[EMAIL PROTECTED]]
Sent:   Monday, March 13, 2000 9:45 PM
To:     [EMAIL PROTECTED]
Subject:        PortableRemoteObject.narrow

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

===========================================================================
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