Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / examples / Simple / time-date / server.cpp
blobd81d6988cb3f125ac55f13215464452aec43a8b0
2 //=============================================================================
3 /**
4 * @file server.cpp
6 * This directory contains an example that illustrates how the ACE
7 * Service Configurator can dynamically configure an ORB and its
8 * servants from a svc.conf file.
10 * @author Doug Schmidt <d.schmidt@vanderbilt.edu>
12 //=============================================================================
15 #include "ace/Service_Config.h"
16 #include "ace/Reactor.h"
17 #include "ace/Log_Msg.h"
19 int
20 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
22 if (ACE_Service_Config::open (argc, argv) == -1
23 && errno != ENOENT)
24 ACE_ERROR_RETURN ((LM_ERROR,
25 ACE_TEXT ("%p\n"),
26 ACE_TEXT ("open")),
27 1);
29 // Run forever, performing the configured services until we
30 // shutdown.
31 ACE_Reactor::run_event_loop ();
32 return 0;