bea ホーム | 製品 | dev2dev | support | askBEA
BEA Logo Tuxedo
 ドキュメントのダウンロード   サイトマップ   用語集 
検索
0

Tuxedo CORBA プログラミング・リファレンス

 Previous Next Contents View as PDF  

CORBA::resolve_initial_references

概要

identifier 文字列に対応する初期オブジェクト・リファレンスを返します。

C++ バインディング

CORBA::Object_ptr CORBA::resolve_initial_references(
const CORBA::char *identifier);

引数

identifier

リファレンスが必要なオブジェクトを識別する文字列。

例外

InvalidName

説明

identifier 文字列に対応する初期オブジェクト・リファレンスを返します。有効な識別子は、"RootPOA" および "POACurrent" です。

注記 この関数がサポートされるのは、共同クライアント/サーバのみです。

戻り値

CORBA::Object_ptr を返します。

CORBA::ORB_ptr orb = CORBA::ORB_init(argc, argv);
CORBA::Object_ptr pfobj =
orb->resolve_initial_references("RootPOA");
PortableServer::POA_ptr rootPOA;
rootPOA = PortableServer::POA::narrow(pfobj);

 


ORB メンバ関数

ORB メンバ関数は、オブジェクト・リクエスト・ブローカのプログラミング・インターフェイスです。

ORB メンバ関数の C++ へのマッピングは次のとおりです。

class CORBA
{
class ORB
{
public:
char *object_to_string(Object_ptr);
Object_ptr string_to_object(const char *);
void create_list(Long, NVList_out);
void create_operation_list(operationDef_ptr, NVList_out);
void create_named_value(NamedValue_out);
void create_exception_list(ExceptionList_out);
void create_context_list(ContextList_out);
void get_default_context(Context_out);
void create_environment(Environment_out);
void send_multiple_requests_oneway(const requestSeq&);
void send_multiple_requests_deferred(const requestSeq&);
Boolean poll_next_response();
void get_next_response(Request_out);
Boolean work_pending();
void perform_work();
void create_policy (in PolicyType type, in any val);
// 拡張
void destroy();
// スレッド間のコンテキストの共有をサポートする拡張
void Ctx get_ctx() = 0;
void set_ctx(Ctx) = 0;
void clear_ctx() = 0;
// スレッドの拡張
void inform_thread_exit(TID) = 0;
}; //ORB
}; // CORBA

スレッド関連のオペレーション

シングル・スレッド ORB、および認識されないマルチスレッド・コードを実行するマルチスレッド ORB をサポートするには、perform_workwork_pending の 2 つのオペレーションを ORB インターフェイスに含めます。これらのオペレーションは、シングル・スレッド・アプリケーションでもマルチスレッド・アプリケーションでも使用できます。アプリケーションが純粋な ORB クライアントの場合は、これらのオペレーションは不要です。

マルチスレッド・サーバ・アプリケーションをサポートするには、get_ctxset_ctxclear_ctx、および inform_thread_exit の 4 つのオペレーションを ORB インターフェイスへの拡張として含めます。

以下の節では、ORB の各メンバ関数について説明します。

 

Back to Top Previous Next
Contact e-docsContact BEAwebmasterprivacy