diff options
author | pradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-06 22:09:43 +0000 |
---|---|---|
committer | pradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-06 22:09:43 +0000 |
commit | c053cdbf691e1dde5cb5ff2a29322c6232e599de (patch) | |
tree | 0d9e67e5cdb2f596c999049446838e1aef8ee4e1 /TAO/examples/Event_Comm/Notifier_Server.cpp | |
parent | 984358cddf2aa84cf8d81f6f63847cc5d3d2dbba (diff) | |
download | ATCD-c053cdbf691e1dde5cb5ff2a29322c6232e599de.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/examples/Event_Comm/Notifier_Server.cpp')
-rw-r--r-- | TAO/examples/Event_Comm/Notifier_Server.cpp | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/TAO/examples/Event_Comm/Notifier_Server.cpp b/TAO/examples/Event_Comm/Notifier_Server.cpp index c75e66c8e9f..f7113ba2393 100644 --- a/TAO/examples/Event_Comm/Notifier_Server.cpp +++ b/TAO/examples/Event_Comm/Notifier_Server.cpp @@ -90,7 +90,7 @@ Notifier_Server::init_naming_service (CORBA::Environment &ACE_TRY_ENV) } ACE_CATCHANY { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, + ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Notifier_Server::init_naming_service\n"); return -1; } @@ -116,22 +116,28 @@ Notifier_Server::init (int argc, ACE_ERROR_RETURN ((LM_ERROR, "%p\n", - "init_child_poa"), + "init_child_poa"), -1); ACE_CHECK_RETURN (-1); - // Activate the servant in the POA. - CORBA::String_var str = - this->orb_manager_.activate_under_child_poa (NOTIFIER_BIND_NAME, + this->orb_manager_.activate_poa_manager (ACE_TRY_ENV); + ACE_CHECK_RETURN (-1); + + // Activate the servant in the POA. + CORBA::String_var str = + this->orb_manager_.activate_under_child_poa (NOTIFIER_BIND_NAME, &this->servant_, - ACE_TRY_ENV); + ACE_TRY_ENV); - return this->init_naming_service (ACE_TRY_ENV); + return this->init_naming_service (ACE_TRY_ENV); } int Notifier_Server::run (CORBA::Environment &ACE_TRY_ENV) { + ACE_DEBUG ((LM_DEBUG, + "Running the notifier server...\n")); + // Run the main event loop for the ORB. if (this->orb_manager_.run (ACE_TRY_ENV) == -1) ACE_ERROR_RETURN ((LM_ERROR, |