Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CORBA Question  RSS feed

Tim Nguyen
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am very new to CORBA stuff, the whole thing seems simple to me, however, I've encountered a few issues I'd like to ask experts here.
1) The idl provided when generated by idlj from JDK1.4 won't compile. The reason being is that some of the classes after generated belong to default package which referenced by other classes in packages. I resolved this by using IBM JDK 1.3.1 idlj and compiles OK or I put all the classes in default package to one package and add import statements to other classes, it compiles OK. However, I am not sure if this conflicts the IDL and object being returned from server implementation? ( I don't have acecss to the Server code).
2) When I do
ORB orb = ORB.init(args, null);
orb.resolve_initial_references("NameService") this line causes the client to wait forever, why is that?
(running on command line as -ORBInitialHost host -ORBInitialPort port, and by telneting to that host & port, I can see the server is running).
3) I have a sample code of in C++ where they do something like following

strcpy(NSLocation, "NameService=iioploc://");
strcat(NSLocation, NSHost);
strcat(NSLocation, ":");
strcat(NSLocation, NSPort);
strcat(NSLocation, "/NameService");
char * ORBargv[] = {"","-ORBAgent", "0","-ORBInitRef", NSLocation
int ORBargc = 5;// (options * 2) + 1
// initialize the ORB.
CORBA: RB_var orb = CORBA: RB_init(ORBargc, ORBargv);
I tried something similar in Java, however it throws BAD_PARAM exception, I read a few examples on SUN web site and they don't mention iioploc anywhere I can only see corbaloc, I am wondering whether that's what I should pass to -ORBInitRef ?
I am really stuck, please help me as soon as possible.
Thanks & Regards,
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!