summaryrefslogtreecommitdiff
path: root/CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2007-01-24 13:30:25 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2007-01-24 13:30:25 +0000
commite47774630314f20d7d2554b7c1547c435abaeb36 (patch)
tree1f11a567ac495a34e680a5c74f9c5947770777a1 /CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.cpp
parent9bc0fc638d27dd317be73da1ed8eac3d84e1b5cc (diff)
downloadATCD-e47774630314f20d7d2554b7c1547c435abaeb36.tar.gz
Wed Jan 24 12:25:12 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.cpp')
-rw-r--r--CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.cpp b/CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.cpp
index 431f5c617b4..30213282d50 100644
--- a/CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.cpp
+++ b/CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.cpp
@@ -66,7 +66,6 @@ int main (int argc, char* argv[])
CORBA::ORB_var orb =
CORBA::ORB_init (argc, argv,""
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
if (parse_args (argc, argv) != 0)
{
@@ -77,13 +76,11 @@ int main (int argc, char* argv[])
CORBA::Object_var distributor_obj =
orb->string_to_object (distributor_ior
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// downcast the object reference to the appropriate type
Stock::StockDistributor_var distributor =
Stock::StockDistributor::_narrow (distributor_obj.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
if (CORBA::is_nil (distributor.in ()))
{
@@ -96,23 +93,19 @@ int main (int argc, char* argv[])
{
distributor->rate (rate
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
ACE_DEBUG ((LM_DEBUG, "Start up the Distribution service\n"));
- distributor->start (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ distributor->start ();
}
else
{
ACE_DEBUG ((LM_DEBUG, "Stop the Distribution service\n"));
- distributor->stop (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ distributor->stop ();
}
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ orb->destroy ();
}
ACE_CATCHANY
{