3 #include "Server_ORBInitializer.h"
4 #include "Test_Protocols_Hooks.h"
5 #include "tao/ORB_Core.h"
6 #include "tao/PI/ORBInitInfo.h"
8 Server_ORBInitializer::Server_ORBInitializer (void)
13 Server_ORBInitializer::pre_init (
14 PortableInterceptor::ORBInitInfo_ptr info
)
16 // Narrow to a TAO_ORBInitInfo object to get access to the
17 // orb_core() TAO extension.
18 TAO_ORBInitInfo_var tao_info
= TAO_ORBInitInfo::_narrow (info
);
20 if (CORBA::is_nil (tao_info
.in ()))
22 throw ::CORBA::INTERNAL ();
25 tao_info
->orb_core ()->orb_params ()->protocols_hooks_name ("Test_Protocols_Hooks");
26 ACE_Service_Config::process_directive (ace_svc_desc_Test_Protocols_Hooks
);
30 Server_ORBInitializer::post_init (
31 PortableInterceptor::ORBInitInfo_ptr
)