tags:

views:

45

answers:

2

How do I make sure JacORB uses a fixed port, lets say 6001, when I use the ORB.object_to_string method?

I tried a few things in the JacORB config, but every generated IOR was a random port.

+1  A: 

jacorb.net.server_socket_factory=org.jacorb.orb.factory.PortRangeServerSocketFactory

jacorb.net.server_socket_factory.port.min=52677

jacorb.net.server_socket_factory.port.max=52679

That did it for me :)

iDemmel