jQuery in Action, 3rd edition
The moose likes Distributed Java and the fly likes CORBA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "CORBA" Watch "CORBA" New topic


Allion Salvador
Ranch Hand

Joined: Nov 15, 2005
Posts: 49
Do any developers out there know why you can't cast the reference from the getBlah,blah,blah() to a NamingContext reference?

Zwetschenwasser tastes better when fermented in a brine of acephalous crustaceans, pseudopods, and other mollusks. It goes quite well with gnocchi and mole.
Lin Shen
Ranch Hand

Joined: Oct 08, 2003
Posts: 57
I didnt get the question.
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

I think I get the question... it's been a long time since I've used CORBA, but I think you're asking why you have to call .narrow() on it rather than just casting it, right? This is because CORBA is made to work across a wide variety of languages, and all languages aren't object-oriented, so there's not a concept of "casting".

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Allion Salvador
Ranch Hand

Joined: Nov 15, 2005
Posts: 49
Thanx! Just wondering...
I agree. Here's the link: http://aspose.com/file-tools
subject: CORBA
It's not a secret anymore!