blob: e864c5988d192db501783fe09e1250877b2712bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// $Id$
#include "orbsvcs/LoadBalancing/LB_ClientORBInitializer.h"
#include "orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.h"
#include "tao/ORB_Constants.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
void
TAO_LB_ClientORBInitializer::pre_init (
PortableInterceptor::ORBInitInfo_ptr)
{
}
void
TAO_LB_ClientORBInitializer::post_init (
PortableInterceptor::ORBInitInfo_ptr info)
{
PortableInterceptor::ClientRequestInterceptor_ptr tmp;
ACE_NEW_THROW_EX (tmp,
TAO_LB_ClientRequestInterceptor,
CORBA::NO_MEMORY (
CORBA::SystemException::_tao_minor_code (
TAO::VMCID,
ENOMEM),
CORBA::COMPLETED_NO));
PortableInterceptor::ClientRequestInterceptor_var client_interceptor = tmp;
info->add_client_request_interceptor (client_interceptor.in ());
}
TAO_END_VERSIONED_NAMESPACE_DECL
|