Interstage Application Server リファレンスマニュアル(API編) |
目次
索引
![]() ![]() |
第2章 C++言語インタフェース | > 2.2 ORBクラス |
CORBA::ORB::resolve_initial_references_remote
#include <orb_cplus.h> Object_ptr CORBA::ORB::resolve_initial_references_remote( CORBA::ORB::ObjectId identifier, CORBA::ORB::RemoteModifier& m, CORBA::Environment& env); typedef CORBA::string_var CORBA_Identifier typedef CORBA::string_var InitAgentDesignator; typedef sequence<InitAgentDesignator> RemoteModifier;
identifierで指定されたオブジェクトのオブジェクトリファレンスを返します。オブジェクトリファレンスは、URL形式でmに定義されたホストのinitial_servicesを検索して獲得します。
identifierには、以下のものが使用できます。
mには複数のURLを指定することが可能です。この場合、指定された順に検索を行い、オブジェクトリファレンスが見つかった時点で検索は打ち切られます。
URLの指定形式を以下に示します。
正常終了した場合、オブジェクトリファレンスが返されます。
異常終了した場合、envのexceptionメンバにSystemExceptionオブジェクトまたはUserExceptionオブジェクトのオブジェクトリファレンスが設定されます。UserException_idには以下の詳細情報が設定されます。
SystemExceptionオブジェクトのオブジェクトリファレンスに設定された例外情報およびマイナーコードの意味については、“メッセージ集”の“CORBAサービスから通知される例外情報/マイナーコード”を参照してください。
CORBA::String_var *URLs; CORBA::ORB::RemoteModifier *m; URLs = CORBA::ORB::RemoteModifier::allocbuf(2); URLs[0] = "iiop://remotehost01:8002"; URLs[1] = "iiop://remotehost02:8002"; m = new CORBA::ORB::RemoteModifier(2,2,URLs,CORBA_TRUE); CORBA::Object_ptr obj = orb->resolve_initial_references_remote( CORBA_ORB_ObjectId_NameService, *m, env );
目次
索引
![]() ![]() |