2 #include "Server_ORBInitializer.h"
4 #if TAO_HAS_INTERCEPTORS == 1
6 #include "Server_Request_Interceptor.h"
8 #include "tao/ORB_Constants.h"
10 Server_ORBInitializer::Server_ORBInitializer (bool & destroy_called
)
11 : destroy_called_ (destroy_called
)
16 Server_ORBInitializer::pre_init (
17 PortableInterceptor::ORBInitInfo_ptr
)
22 Server_ORBInitializer::post_init (
23 PortableInterceptor::ORBInitInfo_ptr info
)
25 PortableInterceptor::ServerRequestInterceptor_ptr interceptor
;
26 ACE_NEW_THROW_EX (interceptor
,
27 Server_Request_Interceptor (this->destroy_called_
),
29 CORBA::SystemException::_tao_minor_code (
32 CORBA::COMPLETED_NO
));
34 PortableInterceptor::ServerRequestInterceptor_var server_interceptor
=
37 info
->add_server_request_interceptor (interceptor
);
40 #endif /* TAO_HAS_INTERCEPTORS == 1 */