Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tests / InterOp-Naming / INS_test_server.cpp
blob2069fc55ca861a4fd763924107553d39332dc800
1 #include "Server_i.h"
2 #include "INS_i.h"
4 // This is the main driver program for the INS test server.
6 int
7 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
9 Server_i server;
11 ACE_DEBUG ((LM_DEBUG,
12 "\n\tINS test server\n\n"));
14 try
16 if (server.init (argc,
17 argv) == -1)
18 return 1;
19 else
21 server.run ();
24 catch (const CORBA::SystemException& sysex)
26 sysex._tao_print_exception ("System Exception");
27 return -1;
29 catch (const CORBA::UserException& userex)
31 userex._tao_print_exception ("User Exception");
32 return -1;
35 return 0;