2 #include "ace/Get_Opt.h"
5 const ACE_TCHAR
*ior
= 0;
8 parse_args (int argc
, ACE_TCHAR
*argv
[])
10 ACE_Get_Opt
get_opts (argc
, argv
, ACE_TEXT("k:"));
13 while ((c
= get_opts ()) != -1)
19 ior
= get_opts
.opt_arg ();
23 ACE_ERROR_RETURN ((LM_ERROR
,
34 ACE_TMAIN(int argc
, ACE_TCHAR
*argv
[])
38 CORBA::ORB_var orb
= CORBA::ORB_init (argc
,
42 if (::parse_args (argc
, argv
) != 0)
45 CORBA::Object_var object
=
46 orb
->string_to_object (ior
);
48 test_var server
= test::_narrow (object
.in ());
50 if (CORBA::is_nil (server
.in ()))
52 ACE_ERROR_RETURN ((LM_ERROR
,
53 "Object reference <%s> is nil.\n",
64 catch (const CORBA::Exception
& ex
)
66 ex
._tao_print_exception ("Caught exception:");
71 "PortableInterceptor ORB::shutdown() test passed.\n"));