summaryrefslogtreecommitdiff
path: root/TAO/tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp')
-rw-r--r--TAO/tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp24
1 files changed, 5 insertions, 19 deletions
diff --git a/TAO/tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp b/TAO/tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp
index 11aa293619d..86d60cf1a65 100644
--- a/TAO/tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp
+++ b/TAO/tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp
@@ -51,18 +51,15 @@ test_i::~test_i (void)
{
ACE_TRY_NEW_ENV
{
- PortableServer::POA_var poa = this->_default_POA (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ PortableServer::POA_var poa = this->_default_POA ();
PortableServer::ObjectId_var id = poa->servant_to_id (this->other_
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
ACE_DEBUG ((LM_DEBUG, "(%t) Deactivating other servant\n"));
poa->deactivate_object (id.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
}
ACE_CATCHANY
{
@@ -83,27 +80,22 @@ main (int argc, char **argv)
argv,
0
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// Obtain the RootPOA.
CORBA::Object_var obj =
orb->resolve_initial_references ("RootPOA"
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// Get the POA_var object from Object_var.
PortableServer::POA_var root_poa =
PortableServer::POA::_narrow (obj.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// Get the POAManager of the RootPOA.
PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ root_poa->the_POAManager ();
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ poa_manager->activate ();
test_i *servant1 = new test_i (0);
test_i *servant2 = new test_i (servant1);
@@ -111,29 +103,23 @@ main (int argc, char **argv)
PortableServer::ObjectId_var id1 =
root_poa->activate_object (servant1
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// Give ownership to POA.
- servant1->_remove_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ servant1->_remove_ref ();
PortableServer::ObjectId_var id2 =
root_poa->activate_object (servant2
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// Give ownership to POA.
- servant2->_remove_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ servant2->_remove_ref ();
root_poa->deactivate_object (id2.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
root_poa->destroy (1,
1
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
}
ACE_CATCHANY
{