summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Bug_3598b_Regression/ClientORBInitializer.cpp
blob: 2f4406185c9db37525f17ac5ca5dc49ad194f1b3 (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
// -*- C++ -*-
//
// $Id$

#include "ClientORBInitializer.h"

void
ClientORBInitializer::pre_init (PortableInterceptor::ORBInitInfo_ptr)
{
    // No-op
}

void
ClientORBInitializer::post_init (PortableInterceptor::ORBInitInfo_ptr info)
{
  PortableInterceptor::ClientRequestInterceptor_ptr cri =
    PortableInterceptor::ClientRequestInterceptor::_nil ();

  ACE_NEW_THROW_EX (cri,
                    ClientRequest_Interceptor,
                    CORBA::NO_MEMORY ());

  PortableInterceptor::ClientRequestInterceptor_var
    client_interceptor = cri;

  info->add_client_request_interceptor (client_interceptor.in ());

}