Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / orbsvcs / Time_Service / Time_Service_Server.cpp
blob5adc3578fb14e357f8d518c94cd091d0b2097475
1 #include "orbsvcs/Log_Macros.h"
2 #include "Server_i.h"
3 #include "ace/OS_main.h"
7 // This is the main driver program for the Time Service server.
9 int
10 ACE_TMAIN (int argc, ACE_TCHAR* argv[])
12 Server_i server;
14 ORBSVCS_DEBUG ((LM_DEBUG,
15 "[SERVER] Process/Thread Id : (%P/%t) Time Service server\n"));
17 try
19 int r = server.init (argc, argv);
21 if (r == -1)
22 return 1;
23 else
25 server.run ();
28 catch (const CORBA::SystemException& sysex)
30 sysex._tao_print_exception ("System Exception");
31 return -1;
33 catch (const CORBA::UserException& userex)
35 userex._tao_print_exception ("User Exception");
36 return -1;
39 return 0;