Hi

   Iam finding in documentation about non java clients stating that Java
RMI IIOP supports many
languages and casting is not native.For this reason to get remote reference
to home Interface
 we must explicitly narrow the object returned from lookup() method using
PortableRemoteObject.narrow().
Ok it is fine.By seeing the following code I am finding use of narrow() and
once again casting with Home Interface.

Object ref=jndiContext.lookup("CabinHome");
CabinHome home=(CabinHome)PortableRemoteObject.narrow(ref,CabinHome.class);

from the previous code iam finding once again casting with CabinHome how
the other languages
say eg.,COBOL will compile.

Please help me in understanding the use of narrow().

Regards
koppala

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