summaryrefslogtreecommitdiff
path: root/TAO/tests/OBV/Forward/server.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2007-01-24 15:39:09 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2007-01-24 15:39:09 +0000
commitc801f87e59c00f72bdeb5ce7bd0d276674665bac (patch)
tree70bff03d1cf156ecf05ee4c5c338d8ce423e64ee /TAO/tests/OBV/Forward/server.cpp
parent98c0b37d4714ff774fc3ada8c9ee893c719af714 (diff)
downloadATCD-c801f87e59c00f72bdeb5ce7bd0d276674665bac.tar.gz
Wed Jan 24 14:00:12 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tests/OBV/Forward/server.cpp')
-rw-r--r--TAO/tests/OBV/Forward/server.cpp23
1 files changed, 5 insertions, 18 deletions
diff --git a/TAO/tests/OBV/Forward/server.cpp b/TAO/tests/OBV/Forward/server.cpp
index bf17c26cc87..2888506ce84 100644
--- a/TAO/tests/OBV/Forward/server.cpp
+++ b/TAO/tests/OBV/Forward/server.cpp
@@ -45,7 +45,6 @@ main (int argc, char *argv[])
{
CORBA::ORB_var orb =
CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// All factories are kindly provided by
// compiler so we just to put everything in a right order.
@@ -59,7 +58,6 @@ main (int argc, char *argv[])
orb->register_value_factory (bn_factory->tao_repository_id (),
bn_factory
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
bn_factory->_remove_ref (); // release ownership
// Create and register factory for TreeController.
@@ -71,7 +69,6 @@ main (int argc, char *argv[])
orb->register_value_factory (tc_factory->tao_repository_id (),
tc_factory
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
tc_factory->_remove_ref (); // release ownership
// Create and register factory for StringNode.
@@ -83,18 +80,15 @@ main (int argc, char *argv[])
orb->register_value_factory (sn_factory->tao_repository_id (),
sn_factory
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
sn_factory->_remove_ref (); // release ownership
//Well, done with factories.
CORBA::Object_var poa_object =
orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
PortableServer::POA_var root_poa =
PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
if (CORBA::is_nil (root_poa.in ()))
ACE_ERROR_RETURN ((LM_ERROR,
@@ -102,8 +96,7 @@ main (int argc, char *argv[])
1);
PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ root_poa->the_POAManager ();
if (parse_args (argc, argv) != 0)
return 1;
@@ -115,12 +108,10 @@ main (int argc, char *argv[])
PortableServer::ServantBase_var owner_transfer(test_impl);
- Test_var test = test_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ Test_var test = test_impl->_this ();
CORBA::String_var ior =
orb->object_to_string (test.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
@@ -132,19 +123,15 @@ main (int argc, char *argv[])
ACE_OS::fprintf (output_file, "%s", ior.in ());
ACE_OS::fclose (output_file);
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ poa_manager->activate ();
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ orb->run ();
ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n"));
root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ orb->destroy ();
}
ACE_CATCHANY
{