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