CORBA - JacORB:使用固定端口生成 IOR?

发布于 2024-09-19 21:33:51 字数 116 浏览 10 评论 0原文

如何确保 JacORB 使用固定端口, 比如说6001, 当我使用 ORB.object_to_string 方法时?

我在 JacORB 配置中尝试了一些操作,但每个生成的 IOR 都是随机端口。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

熊抱啵儿 2024-09-26 21:33:51

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

这对我来说:)

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

游魂 2024-09-26 21:33:51

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.

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.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文