summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_3598a_Regression/ClientORBInitializer.cpp
blob: 45d43b27eca1da270ced02f295e4d95a4b14a1f7 (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
// -*- C++ -*-
#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 ());

}