Properties aProperties = new Properties();
aProperties.put("org.omg.CORBA.ORBInitialHost", "localhost");
aProperties.put("org.omg.CORBA.ORBInitialPort", "2930");
ORB orb = ORB.init((String[]) null, aProperties);
//Get the stringified reference over TCP (String ior)
org.omg.CORBA.Object cmdObject = orb.string_to_object(ior);
this.corba = OGE_CMDHelper.narrow(cmdObject);
What exactly do org.omg.CORBA.ORBInitialHost
and org.omg.CORBA.ORBInitialPort
represent? Is is it the hostname and address of the receiving endpoint of CORBA commands (the location of the implemented objects)? Or is it the hostname and port of the local CORBA ORB that is transmitting CORBA messages to the receiver? Or is it something else entirely?
Regarding the Java SE documentation (new link inserted)
org.omg.CORBA.ORBInitialHost
is
The host name of a machine running a server or daemon that provides initial bootstrap services, such as a name service. The default value for this property is localhost for applications. For applets it is the applet host, equivalent to getCodeBase().getHost().
org.omg.CORBA.ORBInitialPort
is
The port the initial naming service listens to. The default value is 900.