summaryrefslogtreecommitdiff
path: root/TAO/examples/CSD_Strategy/ThreadPool6/ServerApp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/CSD_Strategy/ThreadPool6/ServerApp.cpp')
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool6/ServerApp.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/TAO/examples/CSD_Strategy/ThreadPool6/ServerApp.cpp b/TAO/examples/CSD_Strategy/ThreadPool6/ServerApp.cpp
index 3fe87380250..4754d132955 100644
--- a/TAO/examples/CSD_Strategy/ThreadPool6/ServerApp.cpp
+++ b/TAO/examples/CSD_Strategy/ThreadPool6/ServerApp.cpp
@@ -46,7 +46,7 @@ ServerApp::run(int argc, char* argv[])
{
ACE_ERROR((LM_ERROR,
"(%P|%t) Failed to resolve initial ref for 'RootPOA'.\n"));
- ACE_THROW_RETURN (TestException(), -1);;
+ throw TestException();;
}
PortableServer::POA_var root_poa
@@ -56,7 +56,7 @@ ServerApp::run(int argc, char* argv[])
{
ACE_ERROR((LM_ERROR,
"(%P|%t) Failed to narrow obj ref to POA interface.\n"));
- ACE_THROW_RETURN (TestException(), -1);;
+ throw TestException();;
}
PortableServer::POAManager_var poa_manager
@@ -78,7 +78,7 @@ ServerApp::run(int argc, char* argv[])
{
ACE_ERROR((LM_ERROR, "(%P|%t) ERROR [ServerApp::run()]: "
"Failed to create the child POA.\n"));
- ACE_THROW_RETURN (TestException(), -1);;
+ throw TestException();;
}
policies[0]->destroy ();
@@ -93,7 +93,7 @@ ServerApp::run(int argc, char* argv[])
{
ACE_ERROR((LM_ERROR, "(%P|%t) ERROR [ServerApp::run()]: "
"Failed to apply custom dispatching strategy to child poa.\n"));
- ACE_THROW_RETURN (TestException(), -1);;
+ throw TestException();;
}
// Create the Foo_i object.
@@ -109,7 +109,7 @@ ServerApp::run(int argc, char* argv[])
{
ACE_ERROR((LM_ERROR,
"(%P|%t) Failed to activate servant foo_tie_i.\n"));
- ACE_THROW_RETURN (TestException(), -1);;
+ throw TestException();;
}
// Stringify the object reference
@@ -124,7 +124,7 @@ ServerApp::run(int argc, char* argv[])
ACE_ERROR((LM_ERROR,
"(%P|%t) Cannot open output file for writing IOR: %s",
this->ior_filename_.c_str()));
- ACE_THROW_RETURN (TestException(), -1);;
+ throw TestException();;
}
ACE_OS::fprintf(ior_file, "%s", ior.in ());