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

|
5.11.2 RootPOAのオブジェクトリファレンスの獲得
サーバアプリケーションでPOAオブジェクトを使用するため、イニシャルサービスのオブジェクトリファレンスの取り出しメソッドresolve_initial_references()によりRootPOAのオブジェクトリファレンスを求めます。
try {
// RootPOAのオブジェクトリファレンスの取得
org.omg.CORBA.Object _tmpObj =
Orb.resolve_initial_references( "RootPOA" );
// RootPOAのPOAオブジェクト獲得
org.omg.PortableServer.POA rootPOA =
org.omg.PortableServer.POAHelper.narrow( _tmpObj );
}
catch( java.lang.Exception e ) {
...//例外処理
}
Copyright 2008 FUJITSU LIMITED