简体   繁体   English

如何指定JDK的orbd.exe(对象请求代理守护程序)使用的端口范围?

[英]How to specify port range used by JDK's orbd.exe (Object Request Broker Daemon)?

We have a legacy application that is using CORBA for communiction between two Java processes on different machines. 我们有一个遗留应用程序,该应用程序使用CORBA在不同机器上的两个Java进程之间进行通信。 We are using the ORBD.exe from JDK as a Object Request Broker. 我们将JDK的ORBD.exe用作对象请求代理。 In all existing environments there were no restrictions regarding the used ports between these two machines. 在所有现有环境中,这两台计算机之间使用的端口没有任何限制。 This application has now to be installed at another customer and they refused to open up all ports between the two workstations that are communicating via CORBA. 现在必须将该应用程序安装在另一位客户上,他们拒绝打开通过CORBA进行通信的两个工作站之间的所有端口。 Is there a way to configure ORBD.exe in a way that is uses only a range of let's say 20 ports? 有没有一种方法可以仅使用一系列的端口(例如20个端口)来配置ORBD.exe? I searched around a little bit and found out that JacORB for example provides parameters for that (jacorb.net.socket_factory.port.min / jacorb.net.socket_factory.port.max) but regarding https://docs.oracle.com/javase/1.5.0/docs/guide/idl/orbd.html ORDB.exe seems only to allow the specification of the port where the name server is listening for new connections (-ORBInitialPort, default 1050) and another port which's usage I don't understand (-port, default 1049). 我进行了一些搜索,发现例如JacORB为此提供了参数(jacorb.net.socket_factory.port.min / jacorb.net.socket_factory.port.max),但是关于https://docs.oracle.com/ javase / 1.5.0 / docs / guide / idl / orbd.html ORDB.exe似乎只允许指定名称服务器正在侦听新连接的端口(-ORBInitialPort,默认值为1050)和我使用的其他端口不了解(端口,默认为1049)。 Is that correct? 那是对的吗?

I think orbd has a -port option. 我认为orbd具有-port选项。 So you should just say orbd -port 9999 . 因此,您应该只说orbd -port 9999 The default port is 1049. 默认端口是1049。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM