【问题标题】:CORBA: Trouble while attempting to configure and run OpenORBCORBA:尝试配置和运行 OpenORB 时出现问题
【发布时间】:2010-01-06 09:02:01
【问题描述】:

我正在为 CORBA 客户端编写一个模拟器,即我正在模拟一个 CORBA 服务器。

CORBA 服务器的一个要求是它向 CORBA NameService 注册某个对象。

我不知何故偶然发现了 OpenORB。

我已经下载了它的所有二进制 zip 档案并将它们全部解压到一个目录 - %TCOO_HOME%。我通过%TCOO_HOME%\NamingService\bin 目录中的ins.bat 脚本运行NameService。

我设法运行 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

如果我在%TCOO_HOME%\OpenORB\config 中编辑default.xml 配置文件,并按以下方式将端口更改为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 无法识别配置更改。

  1. 非常感谢您的帮助
  2. 推荐一个不同的、也许更容易配置的 ORB 也可能不错

感激不尽!

【问题讨论】:

    标签: java configuration corba openorb


    【解决方案1】:

    我想我终于做到了……

    我只能回答我的第一个问题,而不能回答第二个问题。

    我已经跑了:ins -ORBopenorb.home=%TCOO_HOME%\home (记住我在ins.bat中添加了以下标志:-u -e --debug debug

    我已将以下文件复制到%TCOO_HOME%\home

    1. default.xml
    2. OpenORB.xml
    3. orb.properties
    4. pss.xml

    并且输出包含以下内容:

    [main] [DEBUG] (ins.svc): Trying to bind: 'COS/NameService/NamingContextExt' ( NoNS = true )
    [main] [INFO ] (ins.svc): NameService=corbaloc:iiop:1.2@localhost:684/NameService
    

    编辑:

    如果您不想使用 -e 标志,您应该编辑 OpenORB.xml 中的默认配置文件,如下所示:

    <profile name="default" xlink:href="${openorb.home}config/default.xml#default">
        <description>
            The default profile loads the POA, iiop and some basic initial references.
        </description>      
    
        <import xlink:href="${openorb.home}config/default.xml#iiop">
            <property name="port" value="684"/>
        </import>       
    </profile>
    

    【讨论】:

      猜你喜欢
      • 2011-08-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-28
      • 2014-10-22
      • 2017-03-30
      相关资源
      最近更新 更多