aspose file tools*
The moose likes Distributed Java and the fly likes orbix hard ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "orbix hard ?" Watch "orbix hard ?" New topic
Author

orbix hard ?

Sam Doder
Ranch Hand

Joined: Feb 06, 2008
Posts: 204
My code is failing at this line


I am working on an old cobra project (using java and c++)
Orbix 3.0.1 is being used for the communication link.

When I do a Helloworld App using the default sdk orbd version It works fine.

But when I use the not built in java orbix I get all these exceptions?

Should I not be using "NameService" maybe "InterfaceRepository" maybe something else?
I have tried a list_initial_services() but when I do this I get different exceptions so I cann't even see what string names are vaild to use with orb.resolve_initial_references


Just as a side note this project is very old and uses 1.3.1 java version.
Has anybody worked with orbix 3.0.1 and with java 1.3.1?
If so I am just looking for a way to call some remote functions. (just need the clientside to access the already implemented and working with orbix serverside stuff)

Thanks only need a clientside. Just a simple way to call these functions thru a test main java class.
I have orb.init( "MY port stuff " , "MY property file " ) ; you can assume I have this correct.
I have check to see that the orb object was not null or anything.
So how do I do the equivalent of the HelloApp to work with orbix instead of orbd that would probably shed some light on clearing up my Cobra exception problems
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

You're being redundant when you say "old" and "CORBA project" in the same sentence. (shrug).

CORBA has its uses, but I'm afraid that before it could ever fully adapt to the Internet, everyone switched over to web services instead, leaving CORBA pretty much as an orphan. It's not 100% dead, and someday maybe people will embrace it again, but it's pretty moribund at the moment.

Java 1.3 is dead. In fact, Java 1.4 is dead. Your chances of getting Orbix support aren't much better. I would not want to entrust critical business functions to something so old that even the zombies have rotted away and there's not much point in pursuing it as an academic exercise, since there are newer CORBA implementations out there, even if most of them are stuck somewhere back around 2005.

For strict java-to-java communications, I'd recommend using RMI instead of CORBA. Either vanilla RMI or remote EJBs. For language-neutral use, web services is the better route to go at the moment.


Customer surveys are for companies who didn't pay proper attention to begin with.
Sam Doder
Ranch Hand

Joined: Feb 06, 2008
Posts: 204
Well , I cann't choose RMI because I need a way to call c/c++ remote functions?
The project is large and old so I agree with you in I should use something different but I simple cann't.

The error I am getting is at the above code snippet I get this as the exception message



This message occurs when I try to do a resolve_initial_references or list_initial_references
Is "NameService" not the correct thing to use with Orbix works on orbd java sdk?

Is their away to lookup what is available

 
jQuery in Action, 2nd edition
 
subject: orbix hard ?