summaryrefslogtreecommitdiff
path: root/TAO/examples/Event_Comm/Notifier_Server.cpp
diff options
context:
space:
mode:
authorpradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-02 20:34:44 +0000
committerpradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-02 20:34:44 +0000
commitc030694c6b4d2cce1f8c7a6e459692432a5c9d91 (patch)
treea9e33296a5eafdce5673518d17d43a7797570f1b /TAO/examples/Event_Comm/Notifier_Server.cpp
parent7577646cfe61130d613677ca8c0133e7debcaf5c (diff)
downloadATCD-c030694c6b4d2cce1f8c7a6e459692432a5c9d91.tar.gz
*** empty log message ***
Diffstat (limited to 'TAO/examples/Event_Comm/Notifier_Server.cpp')
-rw-r--r--TAO/examples/Event_Comm/Notifier_Server.cpp19
1 files changed, 12 insertions, 7 deletions
diff --git a/TAO/examples/Event_Comm/Notifier_Server.cpp b/TAO/examples/Event_Comm/Notifier_Server.cpp
index b42483a7fb2..9bd04f6ccc2 100644
--- a/TAO/examples/Event_Comm/Notifier_Server.cpp
+++ b/TAO/examples/Event_Comm/Notifier_Server.cpp
@@ -22,6 +22,11 @@ Notifier_Server::close (void)
{
TAO_TRY
{
+ // disconnect all the consumers.
+ this->servant_.disconnect ("notifier shutdown.",
+ TAO_TRY_ENV);
+ TAO_CHECK_ENV;
+
// Name the object.
CosNaming::Name notifier_obj_name (1);
notifier_obj_name.length (1);
@@ -102,10 +107,12 @@ Notifier_Server::init (int argc,
{
// Call the init of <TAO_ORB_Manager> to initialize the ORB and
// create the child poa under the root POA.
- if (this->orb_manager_.init_child_poa (argc,
- argv,
- "child_poa",
- TAO_TRY_ENV) == -1)
+
+ if (this->orb_manager_.init_child_poa (argc,
+ argv,
+ "child_poa",
+ TAO_TRY_ENV) == -1)
+
ACE_ERROR_RETURN ((LM_ERROR,
"%p\n",
"init_child_poa"),
@@ -113,14 +120,12 @@ Notifier_Server::init (int argc,
TAO_CHECK_ENV_RETURN (TAO_TRY_ENV,
-1);
- CORBA::ORB_var orb =
- this->orb_manager_.orb ();
-
// Activate the servant in the POA.
CORBA::String_var str =
this->orb_manager_.activate_under_child_poa (NOTIFIER_BIND_NAME,
&this->servant_,
TAO_TRY_ENV);
+
return this->init_naming_service (TAO_TRY_ENV);
}