summaryrefslogtreecommitdiff
path: root/TAO/tests/Oneways_Invoking_Twoways/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Oneways_Invoking_Twoways/client.cpp')
-rw-r--r--TAO/tests/Oneways_Invoking_Twoways/client.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/TAO/tests/Oneways_Invoking_Twoways/client.cpp b/TAO/tests/Oneways_Invoking_Twoways/client.cpp
index ca2473dbf3e..a1a34fda8af 100644
--- a/TAO/tests/Oneways_Invoking_Twoways/client.cpp
+++ b/TAO/tests/Oneways_Invoking_Twoways/client.cpp
@@ -37,13 +37,13 @@ parse_args (int argc, char *argv[])
int
main (int argc, char *argv[])
{
- ACE_TRY_NEW_ENV
+ try
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (argc, argv, "");
CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
+ orb->resolve_initial_references("RootPOA");
if (CORBA::is_nil (poa_object.in ()))
ACE_ERROR_RETURN ((LM_ERROR,
@@ -51,7 +51,7 @@ main (int argc, char *argv[])
1);
PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
+ PortableServer::POA::_narrow (poa_object.in ());
PortableServer::POAManager_var poa_manager =
root_poa->the_POAManager ();
@@ -61,10 +61,10 @@ main (int argc, char *argv[])
// Get the sender reference..
CORBA::Object_var tmp =
- orb->string_to_object(ior ACE_ENV_ARG_PARAMETER);
+ orb->string_to_object(ior);
Test::Sender_var sender =
- Test::Sender::_narrow(tmp.in () ACE_ENV_ARG_PARAMETER);
+ Test::Sender::_narrow(tmp.in ());
if (CORBA::is_nil (sender.in ()))
{
@@ -98,7 +98,7 @@ main (int argc, char *argv[])
// Before creating threads we will let the sender know that we
// will have two threads that would make invocations..
- sender->active_objects ((CORBA::Short) 2 ACE_ENV_ARG_PARAMETER);
+ sender->active_objects ((CORBA::Short) 2);
if (server_task.activate (THR_NEW_LWP | THR_JOINABLE, 2,1) == -1)
{
@@ -117,13 +117,11 @@ main (int argc, char *argv[])
orb->destroy ();
}
- ACE_CATCHANY
+ catch (const CORBA::Exception& ex)
{
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
+ ex._tao_print_exception ("Exception caught:");
return 1;
}
- ACE_ENDTRY;
return 0;
}