ORBacus
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   fLocK_fLocK
Posted On:   Thursday, March 6, 2003 06:22 AM

hi i really have some problems with an ORBacus client, maybe someone can help me: String[] hostAndIpAddress = { "-ORBDefaultInitRef", "corbaloc::xx.xxx.xxx.x:22001/NameService", "-OAport",port}; java.util.Properties props = System.getProperties(); props.put("org.omg.CORBA.ORBClass", "com.ooc.CORBA.ORB"); props.put("org.omg.CORBA.ORBSingletonClass","com.ooc.CORBA.ORBSingleton"); System.setProperties(props); try { orb = org.omg.CORBA.ORB.init(hostAndIpAddress, props); } catch (org.omg.CORBA.SystemException se) { System.err.println("ORB init failure " + se); Syst   More>>

hi i really have some problems with an ORBacus client,
maybe someone can help me:

String[] hostAndIpAddress = { "-ORBDefaultInitRef", "corbaloc::xx.xxx.xxx.x:22001/NameService", "-OAport",port};


java.util.Properties props = System.getProperties();
props.put("org.omg.CORBA.ORBClass", "com.ooc.CORBA.ORB");
props.put("org.omg.CORBA.ORBSingletonClass","com.ooc.CORBA.ORBSingleton");
System.setProperties(props);

try {
orb = org.omg.CORBA.ORB.init(hostAndIpAddress, props);

}
catch (org.omg.CORBA.SystemException se)
{
System.err.println("ORB init failure " + se);
System.exit(1);
}

try{
nameServiceObj = orb.resolve_initial_references("NameService");
System.out.println("done");


if (nameServiceObj == null) {
System.out.println("No name service object");
return;
}
System.out.println("done");
nameService = org.omg.CosNaming.NamingContextHelper.narrow(nameServiceObj);
System.out.println("done");

System.out.println(nameServiceObj.toString());
System.exit(1);

if (nameService == null) {
System.out.println("No name service");
return;
}


but when resolving NameService, I always get the message: NameService failure: org.omg.CORBA.OBJECT_NOT_EXIST minor code: 0 completed: No

Maybe I used wrong arguments when initialising?
Im not sure of the path "/NameService" -> all I know is the server which is listening to port 22001.... any idea?
many thanks

   <<Less
About | Sitemap | Contact