2 //=============================================================================
6 * This class implements the Object B of the
7 * Nested Upcalls - Triangle test.
9 * @author Michael Kircher
11 //=============================================================================
14 #include "tao/Exception.h"
15 #include "Object_B_i.h"
16 #include "ace/OS_NS_unistd.h"
19 Object_B_i::Object_B_i ()
24 Object_B_i::~Object_B_i ()
30 Object_B_i::foo (Object_A_ptr theObject_A_ptr
)
35 "(%P|%t) BEGIN Object_B_i::foo: Trying to call Object A\n"));
37 theObject_A_ptr
->finish ();
39 // Start to wait on this variable, it is set to true
40 // by the method finish ()
41 long int usecs
= 500000;
42 ACE_Time_Value
pause(0, usecs
);
46 catch (const CORBA::Exception
& ex
)
48 ex
._tao_print_exception ("calling the initiator");
54 Object_B_i::shutdown ()
58 CORBA::ORB_var orb
= CORBA::ORB_init (argc
, argv
);