Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / Bug_1559 / Client_ORBInitializer.cpp
blob566d38b8efbd57e0c9e66ef7c4a773c1dd67c987
1 // -*- C++ -*-
2 #include "Client_ORBInitializer.h"
3 #include "client_interceptor.h"
5 Client_ORBInitializer::Client_ORBInitializer ()
9 void
10 Client_ORBInitializer::pre_init (
11 PortableInterceptor::ORBInitInfo_ptr)
15 void
16 Client_ORBInitializer::post_init (
17 PortableInterceptor::ORBInitInfo_ptr info)
19 CORBA::String_var orb_id =
20 info->orb_id ();
22 PortableInterceptor::ClientRequestInterceptor_ptr interceptor =
23 PortableInterceptor::ClientRequestInterceptor::_nil ();
25 // Install the Echo client request interceptor
26 ACE_NEW_THROW_EX (interceptor,
27 Echo_Client_Request_Interceptor (orb_id.in ()),
28 CORBA::NO_MEMORY ());
30 PortableInterceptor::ClientRequestInterceptor_var
31 client_interceptor = interceptor;
33 info->add_client_request_interceptor (client_interceptor.in ());