• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why Narrowing is required for IIOP stubs only?

 
Joseph A Alexander
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Why Narrowing & then casting is required for RMI-IIOP stubs only?
2. Also why a palin casting itself is enough for RMI stubs?

Can somebody explain more in a detailed manner.

Thanks,
Joe
 
Ron V.
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Joe,

I believe this is the situation (I'm open for a better explanation though)
When using plain RMI, we're talking about a protocol that is native to Java. So when using it, we can be sure that we will receive a Java object. So a simple cast is enough.

When using RMI-IIOP though, we could receive any Corba compliant object, possibly written in another language. To make this work, we need to perform a narrow. The narrow method will execute some code written by the container vendor that will make the object you looked up through JNDI usable within your application.

Cheers,

Ron
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic