1 #include "Client_Task.h"
3 #include "interceptors.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
))
20 CORBA::Object_var object
=
21 corb_
->string_to_object (input_
);
23 Test_Interceptors::Visual_var server
=
24 Test_Interceptors::Visual::_narrow (object
.in ());
26 if (CORBA::is_nil (server
.in ()))
28 ACE_ERROR_RETURN ((LM_ERROR
,
29 "Object reference <%s> is nil\n",
34 run_test (server
.in ());
38 catch (const CORBA::Exception
& ex
)
40 ex
._tao_print_exception ("Exception caught in client task:");
49 Client_Task::run_test (Test_Interceptors::Visual_ptr server
)
53 CORBA::Long one
= 1, two
= 1;
54 (void) server
->calculate (one
,
59 (void) server
->user ();
61 catch (const Test_Interceptors::Silly
&)
63 ACE_DEBUG ((LM_DEBUG
, "Caught Silly\n"));
70 catch (const CORBA::INV_OBJREF
&)
72 ACE_DEBUG ((LM_DEBUG
, "Caught CORBA::INV_OBJREF\n"));