2 #include "Server_ORBInitializer.h"
3 #include "IORInterceptor.h"
4 #include "PolicyFactory.h"
7 #include "tao/ORB_Constants.h"
9 #include "ace/OS_NS_string.h"
12 Server_ORBInitializer::pre_init (
13 PortableInterceptor::ORBInitInfo_ptr
/* info */
19 Server_ORBInitializer::post_init (
20 PortableInterceptor::ORBInitInfo_ptr info
)
22 PortableInterceptor::PolicyFactory_ptr p
;
26 CORBA::SystemException::_tao_minor_code (
29 CORBA::COMPLETED_NO
));
31 PortableInterceptor::PolicyFactory_var
policy_factory (p
);
33 info
->register_policy_factory (Test::POLICY_TYPE
,
34 policy_factory
.in ());
36 PortableInterceptor::IORInterceptor_ptr i
;
40 CORBA::SystemException::_tao_minor_code (
43 CORBA::COMPLETED_NO
));
45 PortableInterceptor::IORInterceptor_var
ior_interceptor (i
);
47 info
->add_ior_interceptor (ior_interceptor
.in ());