2 #include "ServerORBInitializer2.h"
3 #include "ServerRequest_Interceptor2.h"
4 #include "tao/ORB_Constants.h"
5 #include "tao/Exception.h"
9 Server_ORBInitializer2::pre_init (
10 PortableInterceptor::ORBInitInfo_ptr
)
15 Server_ORBInitializer2::post_init (
16 PortableInterceptor::ORBInitInfo_ptr info
)
18 this->register_server_request_interceptors (info
);
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
,
32 PortableInterceptor::ServerRequestInterceptor_var
33 server_interceptor
= sri
;
35 info
->add_server_request_interceptor (server_interceptor
.in ());