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 (void)
14 Server_ORBInitializer2::pre_init (
15 PortableInterceptor::ORBInitInfo_ptr
)
20 Server_ORBInitializer2::post_init (
21 PortableInterceptor::ORBInitInfo_ptr info
)
23 this->register_server_request_interceptors (info
);
27 Server_ORBInitializer2::register_server_request_interceptors (
28 PortableInterceptor::ORBInitInfo_ptr info
)
30 TAO249_ServerRequest_Interceptor2
*sri
= 0;
31 ACE_NEW_THROW_EX (sri
,
32 TAO249_ServerRequest_Interceptor2
,
35 PortableInterceptor::ServerRequestInterceptor_var
36 server_interceptor
= sri
;
39 info
->add_server_request_interceptor (server_interceptor
.in ());
43 Server_ORBInitializer2::set_server_iogr (CORBA::Object_ptr obj
)
46 this->sri_
->server_iogr_
= CORBA::Object::_duplicate (obj
);