That's because of the CORBA compatibility. From J2EE 1.3, an application server have 
to support RMI over IIOP. But when you are using local interfaces, you know that the 
object comes from a Java environment. Hence, you can just perform a normal Java cast.
For more info see: 
http://www2.theserverside.com/books/masteringEJB/download/MasteringEJB2.pdf

/johan


-----Original Message-----
From: Ashwani Kalra [mailto:[EMAIL PROTECTED]]
Sent: den 9 oktober 2002 12:33
To: [EMAIL PROTECTED]
Subject: PortableRemoteObject.narrow


Hi,
Why its asked to use
PortableRemoteObject.narrow(home, home.class)
 instead of just downcasting. The specs mention it is due to rmi-iiop
compatibility.
Can any body explain in more details about it.

TIA
Ashwani Kalra

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