1 #include "ORBInitializer.h"
2 #include "orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.h"
3 #include "tao/ORB_Constants.h"
5 ORBInitializer::ORBInitializer ()
11 ORBInitializer::pre_init (
12 PortableInterceptor::ORBInitInfo_ptr
)
17 ORBInitializer::post_init (
18 PortableInterceptor::ORBInitInfo_ptr info
)
20 PortableInterceptor::ServerRequestInterceptor_ptr reject_interceptor
;
21 ACE_NEW_THROW_EX (reject_interceptor
,
22 TAO_LB_ServerRequestInterceptor (this->load_alert_
),
24 CORBA::SystemException::_tao_minor_code (
27 CORBA::COMPLETED_NO
));
29 PortableInterceptor::ServerRequestInterceptor_var safe_reject_interceptor
=
32 info
->add_server_request_interceptor (safe_reject_interceptor
.in ());
37 ORBInitializer::load_alert ()
39 return this->load_alert_
;