Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tests / OBV / Simple / server.cpp
blob0c1b6e8b9fc618a77aba7ca4ad554f89db798afa
1 #include "Simple_util.h"
2 #include "Server_i.h"
4 // This is the main driver program for the time and date server.
6 int
7 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
9 Server<Checkpoint_i> server;
11 ACE_DEBUG ((LM_DEBUG,
12 "\n\tCheckpoint Event_Types server\n\n"));
14 try
16 if (server.init ("Event_Types_Checkpoint", argc, argv) == -1)
17 return 1;
18 else
20 server.run ();
23 catch (const CORBA::SystemException& sysex)
25 sysex._tao_print_exception ("System Exception");
26 return -1;
28 catch (const CORBA::UserException& userex)
30 userex._tao_print_exception ("User Exception");
31 return -1;
34 return 0;