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)
22 CORBA::Object_var tmp
=
23 this->corb_
->string_to_object (input_
);
25 Test::Hello_var hello
=
26 Test::Hello::_narrow(tmp
.in ());
28 if (CORBA::is_nil (hello
.in ()))
30 ACE_ERROR_RETURN ((LM_DEBUG
,
31 "Nil Test::Hello reference <%s>\n",
36 CORBA::String_var the_string
=
39 if (ACE_OS::strcmp (the_string
.in (), "Hello there!") != 0)
41 ACE_ERROR ((LM_ERROR
, "(%P|%t) - Error, incorrect string returned <%C>\n",
46 ACE_DEBUG ((LM_DEBUG
, "(%P|%t) - string returned <%C>\n",
51 catch (const CORBA::Exception
& ex
)
53 ex
._tao_print_exception ("Exception caught:");