开发者

CORBA - JacORB: Use fixed port generating IOR?

开发者 https://www.devze.com 2023-01-16 15:50 出处:网络
How do I make开发者_如何学C sure JacORB uses a fixed port, lets say 6001, when I use the ORB.object_to_string method?

How do I make开发者_如何学C 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.


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 :)


JacORB knows the property OAIAddr

How can I make the server use a specific port number or IP address (in case of multi-homed hosts)?

JacORB provides two properties that can be set to select a port number and IP address
for servers to listen on.  These properties are OAPort and OAIAddr. Thy can be set on
the commandline using the -D switch to the Java interpreter, in the properties file, or
in the source code of the server. In this last case, they are passed as arguments to
the ORB.init() call.
0

精彩评论

暂无评论...
验证码 换一张
取 消