#include <PortableGroup_ORBInitializer.h>
Inheritance diagram for TAO_PortableGroup_ORBInitializer:
Public Member Functions | |
virtual void | pre_init (PortableInterceptor::ORBInitInfo_ptr info) |
virtual void | post_init (PortableInterceptor::ORBInitInfo_ptr info) |
Definition at line 38 of file PortableGroup_ORBInitializer.h.
|
Definition at line 59 of file PortableGroup_ORBInitializer.cpp.
00061 { 00062 } |
|
Definition at line 22 of file PortableGroup_ORBInitializer.cpp. References ACE_ERROR, ACE_NEW_THROW_EX, ACE_TEXT_ALWAYS_CHAR, CORBA::is_nil(), LM_ERROR, pg_poa_factory_directive, pg_poa_factory_name, and TAO_debug_level.
00024 { 00025 // Narrow to a TAO_ORBInitInfo object to get access to the 00026 // orb_core() TAO extension. 00027 TAO_ORBInitInfo_var tao_info = TAO_ORBInitInfo::_narrow (info); 00028 00029 if (CORBA::is_nil (tao_info.in ())) 00030 { 00031 if (TAO_debug_level > 0) 00032 ACE_ERROR ((LM_ERROR, 00033 "(%P|%t) PortableGroup_ORBInitializer::pre_init:\n" 00034 "(%P|%t) Unable to narrow " 00035 "\"PortableInterceptor::ORBInitInfo_ptr\" to\n" 00036 "(%P|%t) \"TAO_ORBInitInfo_ptr.\"\n")); 00037 00038 throw CORBA::INTERNAL (); 00039 } 00040 00041 // Set a new request dispatcher in the ORB. 00042 PortableGroup_Request_Dispatcher *rd = 0; 00043 ACE_NEW_THROW_EX (rd, 00044 PortableGroup_Request_Dispatcher (), 00045 CORBA::NO_MEMORY ( 00046 CORBA::SystemException::_tao_minor_code ( 00047 TAO::VMCID, 00048 ENOMEM), 00049 CORBA::COMPLETED_NO)); 00050 00051 tao_info->orb_core ()->request_dispatcher (rd); 00052 00053 // If the application resolves the root POA, make sure we load the PG POA. 00054 tao_info->orb_core ()->orb_params ()->poa_factory_name (pg_poa_factory_name); 00055 tao_info->orb_core ()->orb_params ()->poa_factory_directive (ACE_TEXT_ALWAYS_CHAR (pg_poa_factory_directive)); 00056 } |