2 #include "Server_ORBInitializer.h"
4 #if TAO_HAS_INTERCEPTORS == 1
6 #include "Server_Request_Interceptor.h"
7 #include "tao/ORB_Constants.h"
9 Server_ORBInitializer::Server_ORBInitializer ()
14 Server_ORBInitializer::pre_init (
15 PortableInterceptor::ORBInitInfo_ptr
)
20 Server_ORBInitializer::post_init (
21 PortableInterceptor::ORBInitInfo_ptr info
)
23 PortableInterceptor::ServerRequestInterceptor_ptr interceptor
;
24 ACE_NEW_THROW_EX (interceptor
,
25 Server_Request_Interceptor
,
27 CORBA::SystemException::_tao_minor_code (
30 CORBA::COMPLETED_NO
));
32 PortableInterceptor::ServerRequestInterceptor_var
33 server_interceptor
= interceptor
;
35 info
->add_server_request_interceptor (interceptor
);
38 #endif /* TAO_HAS_INTERCEPTORS == 1 */