diff options
author | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2007-08-11 17:28:39 +0000 |
---|---|---|
committer | Abdullah Sowayan <sowayan@users.noreply.github.com> | 2007-08-11 17:28:39 +0000 |
commit | 94c11d1ea99d1b8bbb135befc240b4091994b00a (patch) | |
tree | b58b7368f385b9a8f9e6b6b883012ede96067ea4 /TAO/examples/Load_Balancing_persistent | |
parent | 12b8ba0a851c2d702df8d2a6e54958a729409e5c (diff) | |
download | ATCD-94c11d1ea99d1b8bbb135befc240b4091994b00a.tar.gz |
Sat Aug 11 17:20:15 UTC 2007 Abdullah Sowayan <abdullah.sowayan@lmco.com>
Diffstat (limited to 'TAO/examples/Load_Balancing_persistent')
3 files changed, 9 insertions, 9 deletions
diff --git a/TAO/examples/Load_Balancing_persistent/Identity_Client.cpp b/TAO/examples/Load_Balancing_persistent/Identity_Client.cpp index 9ead6d3e69a..3393ba1bd1f 100644 --- a/TAO/examples/Load_Balancing_persistent/Identity_Client.cpp +++ b/TAO/examples/Load_Balancing_persistent/Identity_Client.cpp @@ -225,7 +225,7 @@ Identity_Client::~Identity_Client (void) } int -main (int argc, char *argv[]) +ACE_TMAIN(int argc, ACE_TCHAR *argv[]) { int result = 0; Identity_Client client; diff --git a/TAO/examples/Load_Balancing_persistent/Identity_Server.cpp b/TAO/examples/Load_Balancing_persistent/Identity_Server.cpp index d95c042c6ce..d402de58b46 100644 --- a/TAO/examples/Load_Balancing_persistent/Identity_Server.cpp +++ b/TAO/examples/Load_Balancing_persistent/Identity_Server.cpp @@ -148,22 +148,22 @@ Identity_Server::register_groups (void) // We want to make two groups Random & Round Robin. Load_Balancer::Object_Group_var random_group = factory->make_random ("Random group"); - + if (CORBA::is_nil (random_group.in ())) { ACE_ERROR ((LM_ERROR, "Got nil random group from load balancer\n")); return -1; } - + Load_Balancer::Object_Group_var rr_group = factory->make_round_robin ("Round Robin group"); - + if (CORBA::is_nil (rr_group.in ())) { ACE_ERROR ((LM_ERROR, "Got nil round robin group from load balancer\n")); return -1; } - + // Create the requested number of <Identity> objects, and // register them with the random and round robin // <Object_Group>s. @@ -239,7 +239,7 @@ Identity_Server::~Identity_Server (void) } int -main (int argc, char *argv[]) +ACE_TMAIN(int argc, ACE_TCHAR *argv[]) { int result = 0; Identity_Server server; @@ -254,10 +254,10 @@ main (int argc, char *argv[]) try { result = server.register_groups (); - + if (result != 0) return 1; - + result = server.run (); } catch (const CORBA::Exception& ex) diff --git a/TAO/examples/Load_Balancing_persistent/Load_Balancing_Service.cpp b/TAO/examples/Load_Balancing_persistent/Load_Balancing_Service.cpp index 754cee0f1ae..33c85641eb7 100644 --- a/TAO/examples/Load_Balancing_persistent/Load_Balancing_Service.cpp +++ b/TAO/examples/Load_Balancing_persistent/Load_Balancing_Service.cpp @@ -158,7 +158,7 @@ Load_Balancing_Service::~Load_Balancing_Service (void) } int -main (int argc, char *argv[]) +ACE_TMAIN(int argc, ACE_TCHAR *argv[]) { int result = 0; Load_Balancing_Service factory; |