1 #include "Client_Task.h"
2 #include "MessengerC.h"
4 Client_Task::Client_Task (
6 Messenger_ptr messenger
,
7 ACE_Thread_Manager
*thr_mgr
)
8 : ACE_Task_Base (thr_mgr
)
10 , corb_ (CORBA::ORB::_duplicate (corb
))
11 , messenger_ (Messenger::_duplicate (messenger
))
21 messenger_
->call_message("user");
23 catch(const CORBA::NO_PERMISSION
& ex
)
26 ex
._tao_print_exception ("ERROR: Caught CORBA::NO_PERMISSION exception");
28 catch(const CORBA::Exception
&ex
)
31 ex
._tao_print_exception ("Caught exception:");