ページの先頭行へ戻る
Interstage Application Server アプリケーション作成ガイド(CORBAサービス編)

11.4.2 1プロセス-1インタフェースの場合

  IDLコンパイラがヘッダファイルにインプリメンテーションおよびインタフェースのリポジトリIDを出力します。

(例)
  // IDL
  module mod1 {
      interface intf1 {
          ... 
      };
  };
  // *.h
  #define _IMPL_mod1_intf1    "IDL:mod1/intf1:1.0"
  #define _INTF_mod1_intf1    "IDL:mod1/intf1:1.0"

(1) インプリメンテーションの登録/活性化

  OD_impl_instコマンドで上記インプリメンテーションリポジトリIDで登録を行います。

  OD_impl_inst -a -r IDL:mod1/intf1:1.0 ...

  サーバプログラムで上記インプリメンテーションリポジトリIDの活性化を行います。

  impl = FJ_ImplementationRep_lookup_id( impl_rep,
        _IMPL_mod1_intf1,
        &env );
  CORBA_BOA_impl_is_ready(boa, impl, &env );