Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / tests / ImplRepo / ping_interrupt / Server_ORBInitializer.cpp
blob337c130d38f0935d4deba02ae08fbc933ed71817
1 // -*- C++ -*-
3 #include "Server_ORBInitializer.h"
4 #include "server_interceptor.h"
6 Server_ORBInitializer::Server_ORBInitializer (int *counter)
7 : counter_ (counter),
8 intr_ (0)
12 void
13 Server_ORBInitializer::pre_init (PortableInterceptor::ORBInitInfo_ptr)
17 void
18 Server_ORBInitializer::post_init ( PortableInterceptor::ORBInitInfo_ptr info)
20 if (this->intr_ != 0)
22 return;
25 PortableInterceptor::ServerRequestInterceptor_ptr interceptor =
26 PortableInterceptor::ServerRequestInterceptor::_nil ();
28 // Install the Echo server request interceptor
29 ACE_NEW_THROW_EX (this->intr_,
30 Ping_Death_Request_Interceptor (this->counter_),
31 CORBA::NO_MEMORY ());
33 PortableInterceptor::ServerRequestInterceptor_var
34 server_interceptor = interceptor;
36 info->add_server_request_interceptor (this->intr_); //server_interceptor.in ());
39 void
40 Server_ORBInitializer::set_poa (PortableServer::POA_ptr poa)
42 if (this->intr_ == 0)
44 return;
47 this->intr_->set_poa (poa);