PortableGroup ORB initializer. More...
#include <PortableGroup_ORBInitializer.h>
Public Member Functions | |
virtual void | pre_init (PortableInterceptor::ORBInitInfo_ptr info) |
virtual void | post_init (PortableInterceptor::ORBInitInfo_ptr info) |
PortableGroup ORB initializer.
Definition at line 38 of file PortableGroup_ORBInitializer.h.
void TAO_PortableGroup_ORBInitializer::post_init | ( | PortableInterceptor::ORBInitInfo_ptr | info | ) | [virtual] |
Definition at line 59 of file PortableGroup_ORBInitializer.cpp.
{ }
void TAO_PortableGroup_ORBInitializer::pre_init | ( | PortableInterceptor::ORBInitInfo_ptr | info | ) | [virtual] |
Definition at line 22 of file PortableGroup_ORBInitializer.cpp.
{ // Narrow to a TAO_ORBInitInfo object to get access to the // orb_core() TAO extension. TAO_ORBInitInfo_var tao_info = TAO_ORBInitInfo::_narrow (info); if (CORBA::is_nil (tao_info.in ())) { if (TAO_debug_level > 0) ACE_ERROR ((LM_ERROR, "(%P|%t) PortableGroup_ORBInitializer::pre_init:\n" "(%P|%t) Unable to narrow " "\"PortableInterceptor::ORBInitInfo_ptr\" to\n" "(%P|%t) \"TAO_ORBInitInfo_ptr.\"\n")); throw CORBA::INTERNAL (); } // Set a new request dispatcher in the ORB. PortableGroup_Request_Dispatcher *rd = 0; ACE_NEW_THROW_EX (rd, PortableGroup_Request_Dispatcher (), CORBA::NO_MEMORY ( CORBA::SystemException::_tao_minor_code ( TAO::VMCID, ENOMEM), CORBA::COMPLETED_NO)); tao_info->orb_core ()->request_dispatcher (rd); // If the application resolves the root POA, make sure we load the PG POA. tao_info->orb_core ()->orb_params ()->poa_factory_name (pg_poa_factory_name); tao_info->orb_core ()->orb_params ()->poa_factory_directive (pg_poa_factory_directive); }