首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CORBA - JacORB:使用固定端口生成IOR?

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

Stack Overflow用户
提问于 2010-09-16 20:50:10
回答 2查看 2.5K关注 0票数 2

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

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

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 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

这为我做到了:)

票数 4
EN

Stack Overflow用户

发布于 2010-11-02 15:10:41

JacORB知道属性OAIAddr

如何使服务器使用特定的端口号或IP地址(如果是多宿主主机)?

代码语言:javascript
复制
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.
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3726817

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档