1 #include "Reply_Handler.h"
3 Reply_Handler::Reply_Handler (
4 Test::Hello_ptr hello
, CORBA::ORB_ptr orb
)
6 , hello_(Test::Hello::_duplicate(hello
))
7 , orb_ (CORBA::ORB::_duplicate (orb
))
12 Reply_Handler::short_sleep ()
16 Test::AMI_HelloHandler_var current
=
19 hello_
->sendc_short_sleep(current
.in());
23 Reply_Handler::short_sleep_excep (
24 ::Messaging::ExceptionHolder
*ex
)
32 ex
->raise_exception ();
36 // Problem with the exceptionholder, instead of crashing, print
37 // an error to the log, this normally shouldn't happen but when
38 // there is a bug in TAO it can happen :-(
39 ACE_ERROR ((LM_ERROR
, "ERROR: Got nill exceptionholder\n"));
42 catch (const CORBA::Exception
&)
44 // Exceptions are expected and thus ignored in normal runs:
46 ex
._tao_print_exception ("(%P|%t) Reply_Handler - caught exception:");
50 Test::AMI_HelloHandler_var current
=
53 hello_
->sendc_short_sleep(current
.in());
59 long const count
= --counter_
;
62 // ACE_DEBUG((LM_DEBUG, "(%P|%t) Shut down client thread\n"));
69 ACE_DEBUG((LM_DEBUG
, "(%P|%t) count = %d\n", count
));