dcsimg
Java IDL client trying to connect to CORBA server on remote ORB
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, April 10, 2002 10:19 AM

I have the following Java IDL client code, Properties p = new Properties(); p.put("org.omg.CORBA.ORBClass", "IE.Iona.OrbixWeb.CORBA.ORB"); p.put("org.omg.CORBA.ORBSingletonClass", "IE.Iona.OrbixWeb.CORBA.singletonORB"); p.put("org.omg.CORBA.ORBInitialHost", "DDDEV_MOC"); p.put("org.omg.CORBA.ORBInitialPort", "1570"); p.put("org.omg.CORBA.ORBInitRef", "NameService=corbaloc:iiop:1.0@:/NameService"); orb = IE.Iona.OrbixWeb.CORBA.ORB.init(args, p); try { ref = orb.resolve_initial_references("NameService"); System.out.println("ref:" + ref);    More>>

I have the following Java IDL client code,

			
Properties p = new Properties();
p.put("org.omg.CORBA.ORBClass", "IE.Iona.OrbixWeb.CORBA.ORB");
p.put("org.omg.CORBA.ORBSingletonClass", "IE.Iona.OrbixWeb.CORBA.singletonORB");
p.put("org.omg.CORBA.ORBInitialHost", "DDDEV_MOC");
p.put("org.omg.CORBA.ORBInitialPort", "1570");
p.put("org.omg.CORBA.ORBInitRef", "NameService=corbaloc:iiop:1.0@:/NameService");

orb = IE.Iona.OrbixWeb.CORBA.ORB.init(args, p);
try
{
ref = orb.resolve_initial_references("NameService");
System.out.println("ref:" + ref);


This always prints the ORB host as 'localhost' and not 'DDDEV_MOC' as expected - anyone know what might be wrong?    <<Less
About | Sitemap | Contact