diff options
Diffstat (limited to 'ACE/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/server.cpp')
-rw-r--r-- | ACE/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/server.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ACE/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/server.cpp b/ACE/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/server.cpp new file mode 100644 index 00000000000..844e2ebe789 --- /dev/null +++ b/ACE/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/server.cpp @@ -0,0 +1,31 @@ +#include "LB_server.h" +#include "Factory.h" +#include "Simple.h" + +ACE_RCSID (Infrastructure_Controlled, + server, + "$Id$") + +int +ACE_TMAIN(int argc, ACE_TCHAR *argv[]) +{ + const char *location1 = "MyLocation 1"; + const char *location2 = "MyLocation 2"; + + LB_server lb_server (argc, argv); + + if (lb_server.start_orb_and_poa () == -1) + return 1; + + if (lb_server.create_object_group (location1, location2) == -1) + return 1; + + lb_server.run (); + + ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n")); + + if (lb_server.destroy () == -1) + return 1; + + return 0; +} |