2 #include "tao/ORB_Core.h"
3 #include "tao/ORB_Table.h"
4 #include "tao/ORB_Core_Auto_Ptr.h"
6 Hello::Hello (CORBA::ORB_ptr orb
,
8 : orb_ (CORBA::ORB::_duplicate (orb
))
14 Hello::get_string (void)
17 "(%P|%t) ERROR: Unexpected Upcall in process ..\n"));
19 return CORBA::string_dup ("Hello there!");
23 Hello::shutdown (void)
25 // Give the client thread time to return from the collocated
26 // call to this method before shutting down the ORB. We sleep
27 // to avoid BAD_INV_ORDER exceptions on fast dual processor machines.
29 this->orb_
->shutdown (0);