2 //=============================================================================
6 * This class implements the Object A of the
7 * Nested Upcalls - Triangle test.
9 * @author Michael Kircher
11 //=============================================================================
14 #include "Object_A_i.h"
15 #include "tao/ORB_Core.h"
16 #include "ace/Reactor.h"
19 Object_A_i::Object_A_i ()
20 : finish_two_way_call_ (0)
25 Object_A_i::~Object_A_i ()
31 Object_A_i::foo (Initiator_ptr theInitiator_ptr
)
35 theInitiator_ptr
->foo_object_B ();
37 while (!this->finish_two_way_call_
)
38 TAO_ORB_Core_instance ()->reactor ()->handle_events ();
40 catch (const CORBA::Exception
& ex
)
42 ex
._tao_print_exception ("calling the initiator");
50 this->finish_two_way_call_
= 1;
54 Object_A_i::shutdown ()
58 CORBA::ORB_var orb
= CORBA::ORB_init (argc
, argv
);