2 #include "Client_Task.h"
5 Client_Task::Client_Task (const ACE_TCHAR
*ior
,
7 ACE_Thread_Manager
*thr_mgr
)
8 : ACE_Task_Base (thr_mgr
)
10 , corb_ (CORBA::ORB::_duplicate (corb
))
18 CORBA::Boolean exception
= false;
21 CORBA::Object_var tmp
=
22 this->corb_
->string_to_object (input_
);
23 Test::Hello_var hello
=
24 Test::Hello::_narrow(tmp
.in ());
26 if (CORBA::is_nil (hello
.in ()))
28 ACE_ERROR_RETURN ((LM_DEBUG
,
29 "Nil Test::Hello reference <%s>\n",
35 CORBA::String_var the_string
= hello
->get_string ();
37 ACE_DEBUG ((LM_DEBUG
, "(%P|%t) - string returned <%C>\n",
42 catch (const CORBA::INTERNAL
&)
45 ACE_DEBUG ((LM_DEBUG
, "OK: Client_Task Expected exception received\n"));
50 catch (const CORBA::Exception
& ex
)
52 ex
._tao_print_exception ("Exception caught:");
57 ACE_ERROR ((LM_ERROR
, "(ERROR: Client_Task::svc Expected exception not received\n"));