summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_3299_Regression/Hello.cpp
blob: 08a66f4eb2b207a984130d5e543f0d6eb1b8ec3d (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
#include "Hello.h"

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

char *
Hello::get_string (void)
{
  static int our_count = 0;

  if (our_count == 0)
    {
      ++our_count;
      throw ::CORBA::TRANSIENT (0,
              CORBA::COMPLETED_MAYBE);
    }

  return CORBA::string_dup ("You shouldn't ever see this message");
}

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