我正在为 CORBA 客户端编写一个模拟器,即我正在模拟一个 CORBA 服务器。
CORBA 服务器的一个要求是它向 CORBA NameService 注册某个对象。
我不知何故偶然发现了 OpenORB。
我已经下载了它所有的二进制 zip 档案,并将它们全部解压到一个目录中 - %TCOO_HOME%
. ins.bat
我通过目录中的脚本运行 NameService %TCOO_HOME%\NamingService\bin
。
我设法运行 NameService。
如果我编辑ins.bat
文件并添加到%JAVA% -Xbootclasspath/p:%BOOTCLASSPATH% -Dopenorb.home.path=%TCOO_HOME% -jar %TCOO_HOME%\tools\lib\launcher.jar org.openorb.ins.Server %*
命令标志:-u -e --debug debug
我什至可以看到打印出以下内容:
[main] [DEBUG] (ins.svc): Trying to bind: 'COS/NameService/NamingContextExt' ( NoNS = true )
[main] [INFO ] (ins.svc): NameService=corbaloc:iiop:1.2@localhost:683/NameService
如果我编辑default.xml
配置文件%TCOO_HOME%\OpenORB\config
并以下列方式将端口更改为 684:
<profile name="DefaultCorbalocService">
<description>
This profile loads the CorbalocService module, and sets the port
number in iiop to 683, the default port.
</description>
<import module="CorbalocService" />
<import module="iiop" >
<property name="port" value="684" />
</import>
</profile>
ins.bat 文件的输出不会发生任何变化 - 换句话说,ins 无法识别配置更改。
- 帮助将不胜感激
- 推荐一个不同的、可能更容易配置的 ORB 也可能不错
一颗心感到感谢!