summaryrefslogtreecommitdiff
path: root/TAO/examples/Simple/echo/Echo_Client_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Simple/echo/Echo_Client_i.cpp')
-rw-r--r--TAO/examples/Simple/echo/Echo_Client_i.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/TAO/examples/Simple/echo/Echo_Client_i.cpp b/TAO/examples/Simple/echo/Echo_Client_i.cpp
index 67088738cf4..a91569cd1e6 100644
--- a/TAO/examples/Simple/echo/Echo_Client_i.cpp
+++ b/TAO/examples/Simple/echo/Echo_Client_i.cpp
@@ -28,9 +28,8 @@ Echo_Client_i::run (const char *name,
if (client.init (name,argc, argv) == -1)
return -1;
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
+ try
{
while (1)
{
@@ -43,9 +42,7 @@ Echo_Client_i::run (const char *name,
if (ACE_OS::fgets (buf,sizeof buf, stdin) == 0)
break;
- CORBA::String_var s = client->echo_string (buf
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ CORBA::String_var s = client->echo_string (buf);
ACE_DEBUG ((LM_DEBUG,
"\nString echoed by client \n%s\n",
@@ -53,18 +50,15 @@ Echo_Client_i::run (const char *name,
}
if (client.shutdown () == 1)
- client->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
+ client->shutdown ();
- ACE_TRY_CHECK;
}
- ACE_CATCHANY
+ catch (const CORBA::Exception& ex)
{
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,"\n Exception in RMI");
+ ex._tao_print_exception ("\n Exception in RMI");
return -1;
}
- ACE_ENDTRY;
- ACE_CHECK_RETURN (-1);
return 0;
}