// $Id$ #include "Clerk_i.h" ACE_RCSID(TimeService, Time_Service_Clerk, "$Id$") // This is the main driver program for the Time Service clerk. int main (int argc, char *argv[]) { Clerk_i clerk; ACE_DEBUG ((LM_DEBUG, "[SERVER] Process/Thread Id : (%P/%t) Time Service clerk\n")); ACE_DECLARE_NEW_CORBA_ENV; ACE_TRY { int r = clerk.init (argc, argv, ACE_TRY_ENV); ACE_TRY_CHECK; if (r == -1) return 1; else { clerk.run (ACE_TRY_ENV); ACE_TRY_CHECK; } } ACE_CATCH (CORBA::SystemException, sysex) { ACE_PRINT_EXCEPTION (sysex, "System Exception"); return -1; } ACE_CATCH (CORBA::UserException, userex) { ACE_PRINT_EXCEPTION (userex, "User Exception"); return -1; } ACE_ENDTRY; return 0; }