1 #include "Server_ORBInitializer.h"
2 #include "tao/ORB_Constants.h"
3 #include "Server_Request_Interceptor.h"
5 Server_ORBInitializer::Server_ORBInitializer ()
10 Server_ORBInitializer::pre_init (
11 PortableInterceptor::ORBInitInfo_ptr
)
16 Server_ORBInitializer::post_init (
17 PortableInterceptor::ORBInitInfo_ptr info
)
19 PortableInterceptor::ServerRequestInterceptor_ptr interceptor
;
21 ACE_NEW_THROW_EX (interceptor
,
22 Server_Request_Interceptor
,
24 CORBA::SystemException::_tao_minor_code (
27 CORBA::COMPLETED_NO
));
29 PortableInterceptor::ServerRequestInterceptor_var safe_interceptor
=
32 // Install the server request interceptor.
33 info
->add_server_request_interceptor (interceptor
);