This content has been marked as final. Show 3 replies
That's not correct. I don't have my materials to hand but the default is hard-wired and it is certainly not random. What led you to that conclusion?
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.