As there's no CORBA forum, I'm trying this one. Apologies if I'm off topic.
I need a way to set the port of a CORBA server object. I'm using the ORB supplied with the jdk. The default behaviour appears to be picking a random one, which means openning up all ports on the server's firewall, and means the same for clients implementing callback (listener) objects. Doesn't seem reasonable.
Does anyone know how to do this?
Thanks in advance, and if anyone can point me to a Sun ORB CORBA forum, please do.
The CORBA implementation creates an IOR for each server object, which includes the ip address of the server and the unique port the object uses. Each new object has a new port. When I say random, i mean I can see no pattern to the sequence of ports used when a sequence of objects are created and activated. They are always different.
I'm not talking about the well-known name service port or the orbd port.
I've found a property com.sun.CORBA.ORBServerPort, which you can set when init()-ing the ORB. This works for one object, but subsequent objects are created at the same port. I can't find a way to change the property without creating a new ORB.
Any help's appreciated.