summaryrefslogtreecommitdiff
path: root/TAO/tests/Two_Objects
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
commitb273c8bbb2bb98b5b862d1ce24855ae207b4eb0c (patch)
tree70bff03d1cf156ecf05ee4c5c338d8ce423e64ee /TAO/tests/Two_Objects
parentd43378e7d80d7db5bb3517e16b858fb09b117007 (diff)
downloadATCD-b273c8bbb2bb98b5b862d1ce24855ae207b4eb0c.tar.gz
Wed Jan 24 14:00:12 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tests/Two_Objects')
-rw-r--r--TAO/tests/Two_Objects/First_i.cpp2
-rw-r--r--TAO/tests/Two_Objects/First_i.h2
-rw-r--r--TAO/tests/Two_Objects/Object_Factory_i.cpp7
-rw-r--r--TAO/tests/Two_Objects/Object_Factory_i.h4
-rw-r--r--TAO/tests/Two_Objects/Second_i.cpp4
-rw-r--r--TAO/tests/Two_Objects/Second_i.h4
-rw-r--r--TAO/tests/Two_Objects/client.cpp12
-rw-r--r--TAO/tests/Two_Objects/server.cpp17
-rw-r--r--TAO/tests/Two_Objects/worker.cpp1
9 files changed, 18 insertions, 35 deletions
diff --git a/TAO/tests/Two_Objects/First_i.cpp b/TAO/tests/Two_Objects/First_i.cpp
index b275e55e0be..83b7b630015 100644
--- a/TAO/tests/Two_Objects/First_i.cpp
+++ b/TAO/tests/Two_Objects/First_i.cpp
@@ -18,7 +18,7 @@ First_i::First_i (CORBA::ORB_ptr orb, ACE_Auto_Event &two_way_done)
}
void
-First_i::oneway_method (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+First_i::oneway_method (void)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_DEBUG ((LM_DEBUG, "Oneway servant : (%P|%t) one way method called. About to wait for two way call completion\n"));
diff --git a/TAO/tests/Two_Objects/First_i.h b/TAO/tests/Two_Objects/First_i.h
index 6fa70f53749..9c0b161be6a 100644
--- a/TAO/tests/Two_Objects/First_i.h
+++ b/TAO/tests/Two_Objects/First_i.h
@@ -22,7 +22,7 @@ public:
First_i (CORBA::ORB_ptr orb, ACE_Auto_Event &two_way_done);
/// Interface methods..
- void oneway_method (ACE_ENV_SINGLE_ARG_DECL)
+ void oneway_method (void)
ACE_THROW_SPEC ((CORBA::SystemException));
private:
diff --git a/TAO/tests/Two_Objects/Object_Factory_i.cpp b/TAO/tests/Two_Objects/Object_Factory_i.cpp
index 368c3aa94ed..79fc22d1eb4 100644
--- a/TAO/tests/Two_Objects/Object_Factory_i.cpp
+++ b/TAO/tests/Two_Objects/Object_Factory_i.cpp
@@ -18,7 +18,7 @@ Object_Factory_i::Object_Factory_i (CORBA::ORB_ptr orb, CORBA::ULong len)
//factory method to create first object
Two_Objects_Test::First_ptr
-Object_Factory_i::create_first (ACE_ENV_SINGLE_ARG_DECL)
+Object_Factory_i::create_first (void)
ACE_THROW_SPEC ((CORBA::SystemException))
{
First_i *first_impl;
@@ -36,7 +36,7 @@ Object_Factory_i::create_first (ACE_ENV_SINGLE_ARG_DECL)
//factory method to create second object
Two_Objects_Test::Second_ptr
-Object_Factory_i::create_second (ACE_ENV_SINGLE_ARG_DECL)
+Object_Factory_i::create_second (void)
ACE_THROW_SPEC ((CORBA::SystemException))
{
Second_i *second_impl;
@@ -47,8 +47,7 @@ Object_Factory_i::create_second (ACE_ENV_SINGLE_ARG_DECL)
CORBA::NO_MEMORY ());
Two_Objects_Test::Second_var second =
- second_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (Two_Objects_Test::Second::_nil ());
+ second_impl->_this ();
return second._retn();
}
diff --git a/TAO/tests/Two_Objects/Object_Factory_i.h b/TAO/tests/Two_Objects/Object_Factory_i.h
index fbfd2ef094c..f9d09a6c974 100644
--- a/TAO/tests/Two_Objects/Object_Factory_i.h
+++ b/TAO/tests/Two_Objects/Object_Factory_i.h
@@ -21,10 +21,10 @@ public:
Object_Factory_i (CORBA::ORB_ptr orb,
CORBA::ULong len);
- Two_Objects_Test::First_ptr create_first (ACE_ENV_SINGLE_ARG_DECL)
+ Two_Objects_Test::First_ptr create_first (void)
ACE_THROW_SPEC ((CORBA::SystemException));
- Two_Objects_Test::Second_ptr create_second (ACE_ENV_SINGLE_ARG_DECL)
+ Two_Objects_Test::Second_ptr create_second (void)
ACE_THROW_SPEC ((CORBA::SystemException));
private:
diff --git a/TAO/tests/Two_Objects/Second_i.cpp b/TAO/tests/Two_Objects/Second_i.cpp
index cf3c9f5abff..63d61f9b4ce 100644
--- a/TAO/tests/Two_Objects/Second_i.cpp
+++ b/TAO/tests/Two_Objects/Second_i.cpp
@@ -23,7 +23,7 @@ Second_i::Second_i (CORBA::ORB_ptr orb,
}
Two_Objects_Test::Octet_Seq *
-Second_i::twoway_method (ACE_ENV_SINGLE_ARG_DECL)
+Second_i::twoway_method (void)
ACE_THROW_SPEC ((CORBA::SystemException))
{
Two_Objects_Test::Octet_Seq *preply_mesg;
@@ -55,7 +55,7 @@ Second_i::twoway_method (ACE_ENV_SINGLE_ARG_DECL)
}
void
-Second_i::shutdown (ACE_ENV_SINGLE_ARG_DECL)
+Second_i::shutdown (void)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_DEBUG ((LM_DEBUG, "(%P|%t) about to shutdown the orb\n"));
diff --git a/TAO/tests/Two_Objects/Second_i.h b/TAO/tests/Two_Objects/Second_i.h
index aa0375c9b2f..be08514e3e9 100644
--- a/TAO/tests/Two_Objects/Second_i.h
+++ b/TAO/tests/Two_Objects/Second_i.h
@@ -21,10 +21,10 @@ public:
CORBA::ULong len, ACE_Auto_Event &two_way_done);
Two_Objects_Test::Octet_Seq *
- twoway_method (ACE_ENV_SINGLE_ARG_DECL)
+ twoway_method (void)
ACE_THROW_SPEC ((CORBA::SystemException));
- void shutdown (ACE_ENV_SINGLE_ARG_DECL)
+ void shutdown (void)
ACE_THROW_SPEC ((CORBA::SystemException));
private:
diff --git a/TAO/tests/Two_Objects/client.cpp b/TAO/tests/Two_Objects/client.cpp
index d93a387409a..aedd4b27658 100644
--- a/TAO/tests/Two_Objects/client.cpp
+++ b/TAO/tests/Two_Objects/client.cpp
@@ -44,7 +44,6 @@ main (int argc, char *argv[])
// Initialize the ORB
CORBA::ORB_var orb =
CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// Parse the arguments
if (parse_args (argc, argv) != 0)
@@ -55,13 +54,11 @@ main (int argc, char *argv[])
// object.
CORBA::Object_var tmp =
orb->string_to_object(ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// Narrow the object reference to the appropriate type
Two_Objects_Test::Object_Factory_var factory =
Two_Objects_Test::Object_Factory::_narrow(tmp.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
if (CORBA::is_nil (factory.in ()))
{
@@ -79,20 +76,17 @@ main (int argc, char *argv[])
second = factory->create_second();
// Call the oneway method
- first->oneway_method (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ first->oneway_method ();
ACE_DEBUG ((LM_DEBUG, "Client : one way call done\n"));
Two_Objects_Test::Octet_Seq_var reply_seq =
- second->twoway_method (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ second->twoway_method ();
ACE_DEBUG ((LM_DEBUG, "Client : length of returned data is %d\n",
reply_seq->length() ));
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ orb->destroy ();
}
ACE_CATCHANY
{
diff --git a/TAO/tests/Two_Objects/server.cpp b/TAO/tests/Two_Objects/server.cpp
index 0e6d5a8e9f2..07d09da9a72 100644
--- a/TAO/tests/Two_Objects/server.cpp
+++ b/TAO/tests/Two_Objects/server.cpp
@@ -62,17 +62,14 @@ main (int argc, char *argv[])
// Initialize the ORB
CORBA::ORB_var orb =
CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// Get initial reference to the Root POA
CORBA::Object_var poa_object =
orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// Narrow down to the appropriate type
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,
@@ -81,8 +78,7 @@ main (int argc, char *argv[])
// Get referencee to the POA manager
PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ root_poa->the_POAManager ();
// Parse the arguments
if (parse_args (argc, argv) != 0)
@@ -101,14 +97,12 @@ main (int argc, char *argv[])
// _this method registers the object withe the POA and returns
// an object reference
Two_Objects_Test::Object_Factory_var factory =
- factory_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ factory_impl->_this ();
// Convert the object reference to a string so that it can
// be saved in a file and used by clinet programs later
CORBA::String_var ior =
orb->object_to_string (factory.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");
@@ -123,8 +117,7 @@ main (int argc, char *argv[])
ACE_OS::fclose (output_file);
// Activate the POA manager
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ poa_manager->activate ();
// Instantiate the specified # of worker threads
Worker worker (orb.in (), orb_timeout);
@@ -141,10 +134,8 @@ main (int argc, char *argv[])
ACE_DEBUG ((LM_DEBUG, "(%P|%t) 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
{
diff --git a/TAO/tests/Two_Objects/worker.cpp b/TAO/tests/Two_Objects/worker.cpp
index ae0889a419a..6c6ad4951fc 100644
--- a/TAO/tests/Two_Objects/worker.cpp
+++ b/TAO/tests/Two_Objects/worker.cpp
@@ -21,7 +21,6 @@ Worker::svc (void)
// orb times out after <timeout> seconds
this->orb_->run (tv ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
}
ACE_CATCHANY
{