Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / orbsvcs / tests / Security / Bug_2908_Regression / Client_Task.cpp
blob6a2b9729e2cdee2fae8e11289f403956c7f4162e
1 #include "Client_Task.h"
2 #include "MessengerC.h"
4 Client_Task::Client_Task (
5 CORBA::ORB_ptr corb,
6 Messenger_ptr messenger,
7 ACE_Thread_Manager *thr_mgr)
8 : ACE_Task_Base (thr_mgr)
9 , result_ (0)
10 , corb_ (CORBA::ORB::_duplicate (corb))
11 , messenger_ (Messenger::_duplicate (messenger))
15 int
16 Client_Task::svc ()
18 try
20 // call message
21 messenger_->call_message("user");
23 catch(const CORBA::NO_PERMISSION& ex)
25 result_ = 1;
26 ex._tao_print_exception ("ERROR: Caught CORBA::NO_PERMISSION exception");
28 catch(const CORBA::Exception &ex)
30 result_ = 1;
31 ex._tao_print_exception ("Caught exception:");
34 return 0;