[omniORB] JacORB to OMNI Name service communication
P.R. Krishnan
prk@winphoria.com
Wed, 23 Jan 2002 10:04:31 +0530
Hi,
I am trying to get a Java Client to talk to the OMNI Naming service. I
am using JacORB 1.4 Beta 2. Sample code(Client.java) is as follows. Iam
using OMNI ORB 3.0.x version.
=20
ORB orb =3D ORB.init( args, null );
System.out.println("Successfully inited ORB\n");
org.omg.CORBA.Object o =3D orb.resolve_initial_references("NameService") =
;
System.out.println("resolved initial ref\n");
NamingContextExt nc =3D NamingContextExtHelper.narrow( o );
System.out.println("Successfully got the name service
ref\n");
The "resolve_initial_references" Call always throws up an exception
I am running the OMNI naming service('omniNames') on my local machine. I
tried running my Java client as follows:
java -DORBInitRef.NameService=3Dcorbaname::localhost:2809/NameService
Client
Successfully inited ORB
org.omg.CORBA.COMM_FAILURE: minor code: 1398079490 completed: No
I also tried different command lines:
java -DORBInitRef.NameService=3Dcorbaloc::localhost:2809/NameService
Client
java -DORBInitRef.NameService=3Dcorbaname::10.50.1.35:2809/NameService
Client
All of them throw up the same error. I am able to do get a C++ client to
talk to the same Name server.
Let me know if I have missed something.
--P.R.Krishnan
Winphoria Networks,
email: prk@winphoria.com