2 #include "Client_ORBInitializer.h"
3 #include "client_interceptor.h"
5 Client_ORBInitializer::Client_ORBInitializer (void)
10 Client_ORBInitializer::pre_init (
11 PortableInterceptor::ORBInitInfo_ptr
)
16 Client_ORBInitializer::post_init (
17 PortableInterceptor::ORBInitInfo_ptr info
)
20 CORBA::String_var orb_id
=
23 PortableInterceptor::ClientRequestInterceptor_ptr interceptor
=
24 PortableInterceptor::ClientRequestInterceptor::_nil ();
26 // Install the Echo client request interceptor
27 ACE_NEW_THROW_EX (interceptor
,
28 Echo_Client_Request_Interceptor (orb_id
.in ()),
31 PortableInterceptor::ClientRequestInterceptor_var
32 client_interceptor
= interceptor
;
34 info
->add_client_request_interceptor (client_interceptor
.in ());