diff options
Diffstat (limited to 'TAO/orbsvcs/Time_Service/clerk.cpp')
-rw-r--r-- | TAO/orbsvcs/Time_Service/clerk.cpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/TAO/orbsvcs/Time_Service/clerk.cpp b/TAO/orbsvcs/Time_Service/clerk.cpp new file mode 100644 index 00000000000..64ad86a7d5a --- /dev/null +++ b/TAO/orbsvcs/Time_Service/clerk.cpp @@ -0,0 +1,42 @@ +// $Id$ + +#include "Clerk_i.h" + +ACE_RCSID(TimeService, 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")); + + TAO_TRY + { + if (clerk.init (argc, argv, TAO_TRY_ENV) == -1) + return 1; + else + { + clerk.run (TAO_TRY_ENV); + TAO_CHECK_ENV; + } + } + TAO_CATCH (CORBA::SystemException, sysex) + { + ACE_UNUSED_ARG (sysex); + TAO_TRY_ENV.print_exception ("System Exception"); + return -1; + } + TAO_CATCH (CORBA::UserException, userex) + { + ACE_UNUSED_ARG (userex); + TAO_TRY_ENV.print_exception ("User Exception"); + return -1; + } + TAO_ENDTRY; + + return 0; +} |