diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-09-22 08:48:33 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-09-22 08:48:33 +0000 |
commit | fafcbfd848131cb88a6870c470f9b9dec9f1ac1f (patch) | |
tree | 58d12e7b5de6f75227e1224164875956c528bb34 /TAO/examples/POA | |
parent | d528d90738d95dfc6996e69b08f3d0c27d9b8695 (diff) | |
download | ATCD-fafcbfd848131cb88a6870c470f9b9dec9f1ac1f.tar.gz |
ChangeLogTag: Thu Sep 22 08:21:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/examples/POA')
-rw-r--r-- | TAO/examples/POA/Loader/Server_Manager.cpp | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/TAO/examples/POA/Loader/Server_Manager.cpp b/TAO/examples/POA/Loader/Server_Manager.cpp index 051ef1b2124..287be59afe8 100644 --- a/TAO/examples/POA/Loader/Server_Manager.cpp +++ b/TAO/examples/POA/Loader/Server_Manager.cpp @@ -188,17 +188,22 @@ Server_i::create_poa (const char *name, // Servant Retention Policy. if (servant_retention_policy == 1) - policies_[3] = - root_poa_->create_servant_retention_policy - (PortableServer::RETAIN - ACE_ENV_ARG_PARAMETER); + { + policies_[3] = + root_poa_->create_servant_retention_policy + (PortableServer::RETAIN + ACE_ENV_ARG_PARAMETER); + ACE_TRY_CHECK; + } if (servant_retention_policy == 0) - policies_[3] = - root_poa_->create_servant_retention_policy - (PortableServer::NON_RETAIN - ACE_ENV_ARG_PARAMETER); - ACE_TRY_CHECK; + { + policies_[3] = + root_poa_->create_servant_retention_policy + (PortableServer::NON_RETAIN + ACE_ENV_ARG_PARAMETER); + ACE_TRY_CHECK; + } // Create myPOA as the child of RootPOA with the above // policies_. myPOA will use SERVANT_ACTIVATOR or |