当我使用ORB.object_to_string方法时,如何确保JacORB使用固定的端口,比如说6001?
我在JacORB配置中尝试了一些方法,但是每个生成的IOR都是一个随机端口。
发布于 2010-09-19 23:40:06
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
这为我做到了:)
发布于 2010-11-02 15:10:41
JacORB知道属性OAIAddr
如何使服务器使用特定的端口号或IP地址(如果是多宿主主机)?
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.https://stackoverflow.com/questions/3726817
复制相似问题