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 (void)
24 Object_B_i::~Object_B_i (void)
31 Object_B_i::foo (Object_A_ptr theObject_A_ptr
)
37 "(%P|%t) BEGIN Object_B_i::foo: Trying to call Object A\n"));
39 theObject_A_ptr
->finish ();
41 // Start to wait on this variable, it is set to true
42 // by the method finish ()
43 long int usecs
= 500000;
44 ACE_Time_Value
pause(0, usecs
);
49 catch (const CORBA::Exception
& ex
)
51 ex
._tao_print_exception ("calling the initiator");
57 Object_B_i::shutdown (void)
61 CORBA::ORB_var orb
= CORBA::ORB_init (argc
, argv
);