summaryrefslogtreecommitdiff
path: root/TAO/examples/POA/Explicit_Activation/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/POA/Explicit_Activation/server.cpp')
-rw-r--r--TAO/examples/POA/Explicit_Activation/server.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/TAO/examples/POA/Explicit_Activation/server.cpp b/TAO/examples/POA/Explicit_Activation/server.cpp
index 261904d4335..79d3d96ecb8 100644
--- a/TAO/examples/POA/Explicit_Activation/server.cpp
+++ b/TAO/examples/POA/Explicit_Activation/server.cpp
@@ -158,8 +158,8 @@ main (int argc, char **argv)
ACE_TRY_CHECK;
// Policies for the firstPOA to be created.
- CORBA::PolicyList policies (3);
- policies.length (3);
+ CORBA::PolicyList policies (2);
+ policies.length (2);
// Id Assignment Policy
policies[0] =
@@ -173,12 +173,6 @@ main (int argc, char **argv)
ACE_TRY_ENV);
ACE_TRY_CHECK;
- // Threading policy
- policies[2] =
- root_poa->create_thread_policy (PortableServer::ORB_CTRL_MODEL,
- ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
// Create the firstPOA under the RootPOA.
ACE_CString name = "firstPOA";
PortableServer::POA_var first_poa =
@@ -188,15 +182,6 @@ main (int argc, char **argv)
ACE_TRY_ENV);
ACE_TRY_CHECK;
- policies[2]->destroy (ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
- // Threading policy
- policies[2] =
- root_poa->create_thread_policy (PortableServer::SINGLE_THREAD_MODEL,
- ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
// Create the secondPOA under the firstPOA.
name = "secondPOA";
PortableServer::POA_var second_poa =