Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / orbsvcs / tests / Bug_2615_Regression / ServerORBInitializer2.cpp
blob17f53a73de34ee64640dd78a840559efbf1eb1f0
1 // -*- C++ -*-
2 #include "ServerORBInitializer2.h"
3 #include "ServerRequest_Interceptor2.h"
4 #include "tao/ORB_Constants.h"
5 #include "tao/Exception.h"
8 void
9 Server_ORBInitializer2::pre_init (
10 PortableInterceptor::ORBInitInfo_ptr)
14 void
15 Server_ORBInitializer2::post_init (
16 PortableInterceptor::ORBInitInfo_ptr info)
18 this->register_server_request_interceptors (info);
21 void
22 Server_ORBInitializer2::register_server_request_interceptors (
23 PortableInterceptor::ORBInitInfo_ptr info)
25 PortableInterceptor::ServerRequestInterceptor_ptr sri =
26 PortableInterceptor::ServerRequestInterceptor::_nil ();
28 ACE_NEW_THROW_EX (sri,
29 ServerRequest_Interceptor2,
30 CORBA::NO_MEMORY ());
32 PortableInterceptor::ServerRequestInterceptor_var
33 server_interceptor = sri;
35 info->add_server_request_interceptor (server_interceptor.in ());