Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / tests / Bug_2287_Regression / ServerORBInitializer2.cpp
blob8b6ebd8a2b506bfb06e33aa1696ee3be66e88128
1 // -*- C++ -*-
2 #include "ServerORBInitializer2.h"
3 #include "ServerRequest_Interceptor2.h"
4 #include "tao/ORB_Constants.h"
5 #include "tao/Exception.h"
8 Server_ORBInitializer2::Server_ORBInitializer2 ()
9 : sri_ (0)
13 void
14 Server_ORBInitializer2::pre_init (
15 PortableInterceptor::ORBInitInfo_ptr
20 void
21 Server_ORBInitializer2::post_init (
22 PortableInterceptor::ORBInitInfo_ptr info
25 this->register_server_request_interceptors (info);
28 void
29 Server_ORBInitializer2::register_server_request_interceptors (
30 PortableInterceptor::ORBInitInfo_ptr info
33 TAO249_ServerRequest_Interceptor2 *sri = 0;
34 ACE_NEW_THROW_EX (sri,
35 TAO249_ServerRequest_Interceptor2,
36 CORBA::NO_MEMORY ());
38 PortableInterceptor::ServerRequestInterceptor_var
39 server_interceptor = sri;
40 this->sri_ = sri;
42 info->add_server_request_interceptor (server_interceptor.in ());
45 void
46 Server_ORBInitializer2::set_server_iogr (CORBA::Object_ptr obj)
48 if (this->sri_)
49 this->sri_->server_iogr_ = CORBA::Object::_duplicate (obj);