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