blob: 24d5cc316f9aba8de6d8cf48d1f92e5de588bd5a (
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
|
//
// $Id$
//
#include "Hello.h"
ACE_RCSID(Hello, Hello, "$Id$")
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);
}
|