Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do you specify the port for a persistent CORBA server

843793Mar 30 2006 — edited Mar 31 2006
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 28 2006
Added on Mar 30 2006
3 comments
492 views