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
))
16 Client_Task::svc (void)
18 CORBA::Boolean exception
= false;
21 CORBA::Object_var tmp
=
22 this->corb_
->string_to_object (input_
);
24 Test::Hello_var hello
=
25 Test::Hello::_narrow(tmp
.in ());
27 if (CORBA::is_nil (hello
.in ()))
29 ACE_ERROR_RETURN ((LM_DEBUG
,
30 "Nil Test::Hello reference <%s>\n",
36 CORBA::String_var the_string
=
39 ACE_DEBUG ((LM_DEBUG
, "(%P|%t) - string returned <%C>\n",
44 catch (const CORBA::INTERNAL
&)
47 ACE_DEBUG ((LM_DEBUG
, "OK: Client_Task Expected exception received\n"));
52 catch (const CORBA::Exception
& ex
)
54 ex
._tao_print_exception ("Exception caught:");
59 ACE_ERROR ((LM_ERROR
, "(ERROR: Client_Task::svc Expected exception not received\n"));