Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / Dynamic / Echo_Server_ORBInitializer.cpp
blob095a32b08e0b323627fbce624957411f275284ac
1 // -*- C++ -*-
2 #include "Echo_Server_ORBInitializer.h"
4 #if TAO_HAS_INTERCEPTORS == 1
6 #include "server_interceptor.h"
8 void
9 Echo_Server_ORBInitializer::pre_init (
10 PortableInterceptor::ORBInitInfo_ptr)
14 void
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,
25 CORBA::NO_MEMORY ());
27 PortableInterceptor::ServerRequestInterceptor_var
28 server_interceptor = interceptor;
30 info->add_server_request_interceptor (server_interceptor.in ());
34 #endif /* TAO_HAS_INTERCEPTORS == 1 */