summaryrefslogtreecommitdiff
path: root/TAO/tests/POA/Bug_1592_Regression/test_i.cpp
blob: e5bba01dc1f875eb0bc7ef9737a67120bfc21bef (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
34
#include "test_i.h"

extern CORBA::Boolean receive_request_called;

test_i::test_i (CORBA::ORB_ptr orb)
  : orb_ (CORBA::ORB::_duplicate (orb))
{
}

test_i::~test_i (void)
{
}

void
test_i::op (void)
{
  // PortableInterceptor::ServerRequestInterceptor::receive_request()
  // should have been invoked.
  if (::receive_request_called == 0)
    {
      ACE_ERROR ((LM_ERROR,
                  "PortableInterceptor::ServerRequestInterceptor::"
                  "receive_request() not called\n"
                  "prior to target operation execution.\n"));

      throw CORBA::INTERNAL ();
    }
}

void
test_i::shutdown (void)
{
  this->orb_->shutdown (0);
}