문제

Corba 클라이언트를위한 시뮬레이터를 작성하고 있습니다. 즉, Corba 서버를 시뮬레이션하고 있습니다.

CORBA 서버의 요구 사항은 Corba NamesService에 특정 객체를 등록하는 것입니다.

나는 어떻게 든 Openorb를 우연히 발견했습니다.

나는 모든 바이너리 Zip 아카이브를 다운로드했으며 단일 디렉토리로 모두 추출했습니다. %TCOO_HOME%. 나는 The NamesService를 실행합니다 ins.bat 스크립트 %TCOO_HOME%\NamingService\bin 예배 규칙서.

나는 NamesService를 실행할 수 있습니다.

내가 편집하면 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에 의해 식별되지 않습니다.

  1. 도움을 주셔서 감사합니다
  2. 더 쉽게 구성 가능할 수있는 다른 것의 권장 사항도 좋을 수 있습니다.

마음이 감사했습니다!

도움이 되었습니까?

해결책

마침내 해본 것 같아요 ...

나는 첫 번째 질문에만 대답 할 수 있으며 두 번째 질문이 아닙니다.

나는 달렸다 : 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>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top