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: Upcall in process ..\n"));
18 return CORBA::string_dup ("Hello there!");
22 Hello::shutdown (void)
24 // Give the client thread time to return from the collocated
25 // call to this method before shutting down the ORB. We sleep
26 // to avoid BAD_INV_ORDER exceptions on fast dual processor machines.
28 this->orb_
->shutdown (0);