Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / DII_AMI_Forward / orb_initializer.cpp
blob8a4ec18a4302a2f5e019eb0ec4957c8673683c50
1 // -*- C++ -*-
3 #include "orb_initializer.h"
4 #include "server_interceptor.h"
6 Server_ORBInitializer::Server_ORBInitializer ()
10 void
11 Server_ORBInitializer::pre_init (
12 PortableInterceptor::ORBInitInfo_ptr)
14 // No Op
17 void
18 Server_ORBInitializer::post_init (
19 PortableInterceptor::ORBInitInfo_ptr info)
21 // Install the Echo server request interceptor
22 ACE_NEW_THROW_EX (this->server_interceptor_,
23 ForwardTest_Request_Interceptor,
24 CORBA::NO_MEMORY ());
26 PortableInterceptor::ServerRequestInterceptor_var interceptor =
27 this->server_interceptor_;
29 info->add_server_request_interceptor (interceptor.in ());
32 ForwardTest_Request_Interceptor *
33 Server_ORBInitializer::server_interceptor ()
35 return this->server_interceptor_;