Hi,
Yes  for maximum portability we should use PRO.narrow()  because if protocol used is RMI-IIOP then direct cast may fail which is handled properly by PRO.narrow()
However for local interfaces it should not matter.
Correct me If am wrong
 
Regds
Ashwani
 
 
 
----- Original Message -----
Sent: Wednesday, June 05, 2002 4:01 PM
Subject: PortableRemoteObject.narrow clarification (again!)

Hi everyone,
I looked at the archives and I found much discussion on the use of PortableRemoteObject.narrow, and I think I understand it - but I just wanted to know if the issue has changed with the advent of LocalHome interfaces. Ie, do we still have to use PRO.narrow when looking up LocalHome interfaces? I read that the reason we do it is if we're using RMI-IIOP to connect to the JNDI namespace. Also I read that many app servers work with a direct cast, but to be sure of conformity we should use PRO.narrow. So can I also ask - do people use PRO.narrow every time they access an ejb? Is it a good idea to do this?
thanks,
Brian

Reply via email to