Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / tests / DII_Discard_Deferred / Hello.cpp
blob81c558f51802356ed1feaef7b8f9870814b63ce1
1 // -*- C++ -*-
2 #include "Hello.h"
3 #include "ace/OS_NS_unistd.h"
5 Hello::Hello (CORBA::ORB_ptr orb)
6 : orb_ (CORBA::ORB::_duplicate (orb))
10 char *
11 Hello::get_string ()
13 ACE_DEBUG ((LM_DEBUG, "(%P|%t) - Hello::get_string called\n"));
14 ACE_OS::sleep (2);
15 ACE_DEBUG ((LM_DEBUG, "(%P|%t) - Hello::get_string returning\n"));
16 return CORBA::string_dup ("Hello there!");
19 void
20 Hello::shutdown ()
22 this->orb_->shutdown (false);