本文介绍了CORBA - JacORB:使用固定端口生成IOR?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何确保JacORB使用固定端口,
在我使用ORB.object_to_string方法时可以说6001,
?
How do I make sure JacORB uses a fixed port, lets say 6001, when I use the ORB.object_to_string method?
我在JacORB配置中尝试了一些东西,但每个生成的IOR都是一个随机端口。
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=org.jacorb.orb.factory.PortRangeServerSocketFactory
jacorb.net.server_socket_factory.port.min = 52677
jacorb.net.server_socket_factory.port.min=52677
jacorb.net.server_socket_factory.port.max = 52679
jacorb.net.server_socket_factory.port.max=52679
这样做对我来说:)
这篇关于CORBA - JacORB:使用固定端口生成IOR?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!