Interstage Application Server アプリケーション作成ガイド (CORBAサービス編)
目次 索引 前ページ次ページ

第11章 CORBAアプリケーションの高度な使い方> 11.3 複数インタフェースの1プロセスへの実装

11.3.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 );

目次 索引 前ページ次ページ

All Rights Reserved, Copyright(C) 富士通株式会社 2005