1 // author : Boris Kolpackov <boris@dre.vanderbilt.edu>
2 #include "StateTransferC.h"
5 ACE_TMAIN(int argc
, ACE_TCHAR
*argv
[])
9 CORBA::ORB_var orb
= CORBA::ORB_init (argc
, argv
);
13 ACE_DEBUG ((LM_ERROR
, "Usage: %s <ior>\n", argv
[0]));
17 CORBA::Object_var obj
= orb
->string_to_object (argv
[1]);
18 StateTransfer_var server
= StateTransfer::_narrow (obj
.in ());
20 CORBA::Short n
= server
->number ();
22 ACE_DEBUG ((LM_ERROR
, "Got number %d\n", n
));
26 catch (const ::CORBA::Exception
&ex
)
28 ex
._tao_print_exception ("ERROR : unexpected CORBA exception caught : ");