2 #include "Echo_Server_ORBInitializer.h"
4 #if TAO_HAS_INTERCEPTORS == 1
6 #include "server_interceptor.h"
9 Echo_Server_ORBInitializer::pre_init (
10 PortableInterceptor::ORBInitInfo_ptr
)
15 Echo_Server_ORBInitializer::post_init (
16 PortableInterceptor::ORBInitInfo_ptr info
)
19 PortableInterceptor::ServerRequestInterceptor_ptr interceptor
=
20 PortableInterceptor::ServerRequestInterceptor::_nil ();
22 // Install the Echo server request interceptor
23 ACE_NEW_THROW_EX (interceptor
,
24 Echo_Server_Request_Interceptor
,
27 PortableInterceptor::ServerRequestInterceptor_var
28 server_interceptor
= interceptor
;
30 info
->add_server_request_interceptor (server_interceptor
.in ());
34 #endif /* TAO_HAS_INTERCEPTORS == 1 */