Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / Bug_2285_Regression / ServerORBInitializer2.cpp
blobb23cba1c322efcc98c7cc2a62a53bc3fd05ea85a
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)
15 void
16 Server_ORBInitializer2::post_init (
17 PortableInterceptor::ORBInitInfo_ptr info)
19 this->register_server_request_interceptors (info);
22 void
23 Server_ORBInitializer2::register_server_request_interceptors (
24 PortableInterceptor::ORBInitInfo_ptr info)
26 PortableInterceptor::ServerRequestInterceptor_ptr sri =
27 PortableInterceptor::ServerRequestInterceptor::_nil ();
29 ACE_NEW_THROW_EX (sri,
30 TAO249_ServerRequest_Interceptor2,
31 CORBA::NO_MEMORY ());
33 PortableInterceptor::ServerRequestInterceptor_var
34 server_interceptor = sri;
36 info->add_server_request_interceptor (server_interceptor.in ());