How do you specify the port for a persistent CORBA server?
I tried following the example from http://java.sun.com/j2se/1.5.0/docs/guide/idl/INStutorial.html and got it to work after updating the orb cast to use the correct class (com.sun.corba.se.impl.orb.ORBImpl) not (com.sun.corba.se.internal.Interceptors.PIORB), but that only seems to work with transient servers. When I try putting
Properties properties = new Properties();
properties.put("com.sun.CORBA.POA.ORBPersistentServerPort","50000");
it in my persistent server that is registered with servertool, it ignores my port request and assigns the next available port like normal.
I need to be able to create persistent servers using servertool so they can be activated on demand, but I also need to be able to pick the ports they will listen on, so that I can setup my firewall properly. How do I do both?
Thanks in advance,
Chris