summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp')
-rw-r--r--TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp25
1 files changed, 17 insertions, 8 deletions
diff --git a/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp b/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp
index 29b72ee1921..3a02a9b3ef9 100644
--- a/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp
+++ b/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp
@@ -1,7 +1,8 @@
-#include "ace/Get_Opt.h"
#include "Event_Logging_Service.h"
+#include "ace/Get_Opt.h"
#include "orbsvcs/Log/EventLogFactory_i.h"
#include "orbsvcs/CosEvent/CEC_Default_Factory.h"
+#include "tao/IORTable/IORTable.h"
#include "ace/OS_main.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_unistd.h"
@@ -100,9 +101,6 @@ int
Event_Logging_Service::startup (int argc, char *argv[]
ACE_ENV_ARG_DECL)
{
- ACE_DEBUG ((LM_DEBUG,
- "\nStarting up the Telecom EventLog Service...\n"));
-
// initalize the ORB.
this->init_ORB (argc, argv
ACE_ENV_ARG_PARAMETER);
@@ -120,12 +118,23 @@ Event_Logging_Service::startup (int argc, char *argv[]
ACE_CHECK_RETURN (-1);
ACE_ASSERT (!CORBA::is_nil (obj.in ()));
- CORBA::String_var str =
+ CORBA::String_var ior =
this->orb_->object_to_string (obj.in () ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
- ACE_DEBUG ((LM_DEBUG,
- "The Event Log Factory IOR is <%s>\n", str.in ()));
+ if (true)
+ {
+ CORBA::Object_var table_object =
+ this->orb_->resolve_initial_references ("IORTable");
+ ACE_CHECK_RETURN (-1);
+
+ IORTable::Table_var adapter =
+ IORTable::Table::_narrow (table_object.in ());
+ ACE_CHECK_RETURN (-1);
+
+ adapter->bind("EventLogService", ior.in ())
+ ACE_CHECK_RETURN (-1);
+ }
if (ior_file_name_ != 0)
{
@@ -137,7 +146,7 @@ Event_Logging_Service::startup (int argc, char *argv[]
-1);
}
- ACE_OS::fprintf (iorf, "%s\n", str.in ());
+ ACE_OS::fprintf (iorf, "%s\n", ior.in ());
ACE_OS::fclose (iorf);
}