summaryrefslogtreecommitdiff
path: root/TAO
diff options
context:
space:
mode:
authorjp4 <jp4@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-07-07 00:27:33 +0000
committerjp4 <jp4@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-07-07 00:27:33 +0000
commitd96222bf5028389654cdcc89e08d7e9eac011ab7 (patch)
tree58116ccd9697fe4a7c398e0295a508588e369236 /TAO
parentd1f121266d4104aa6f912789c631c15c5b806fab (diff)
downloadATCD-d96222bf5028389654cdcc89e08d7e9eac011ab7.tar.gz
*** empty log message ***
Diffstat (limited to 'TAO')
-rw-r--r--TAO/tests/Cubit/TAO/DII_Cubit/client.cpp21
1 files changed, 13 insertions, 8 deletions
diff --git a/TAO/tests/Cubit/TAO/DII_Cubit/client.cpp b/TAO/tests/Cubit/TAO/DII_Cubit/client.cpp
index f73be3648ba..4e9ea5c55fa 100644
--- a/TAO/tests/Cubit/TAO/DII_Cubit/client.cpp
+++ b/TAO/tests/Cubit/TAO/DII_Cubit/client.cpp
@@ -107,10 +107,6 @@ DII_Cubit_Client::init (int argc, char **argv)
this->argc_ = argc;
this->argv_ = argv;
- // Parse command line and verify parameters.
- if (this->parse_args () == -1)
- return -1;
-
// Exits gracefully when no IOR is provided and
// use_naming_service_ is toggled off.
if (!ACE_OS::strcmp (this->factory_IOR_,
@@ -133,6 +129,10 @@ DII_Cubit_Client::init (int argc, char **argv)
TAO_TRY_ENV);
TAO_CHECK_ENV;
+ // Parse command line and verify parameters.
+ if (this->parse_args () == -1)
+ return -1;
+
if (this->use_naming_service_)
{
// Get a factory object reference from the naming service.
@@ -845,15 +845,20 @@ DII_Cubit_Client::run (void)
TAO_TRY
{
+ // Shut down server via a DII request.
if (this->shutdown_)
{
- Cubit_var specific = Cubit::_narrow (this->obj_var_.in (),
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
+ CORBA::Request_ptr req;
- specific->shutdown (TAO_TRY_ENV);
+ req = this->obj_var_->_request ("shutdown",
+ TAO_TRY_ENV);
TAO_CHECK_ENV;
+ // Cubit::shutdown () is a oneway operation.
+ req->send_oneway ();
+
+ CORBA::release (req);
+
ACE_DEBUG ((LM_DEBUG,
"\n \t Shutting down IDL_Cubit server \n\n"));
}