From b29eabab3f10f542c0ae937da15b811fff01c801 Mon Sep 17 00:00:00 2001 From: pradeep Date: Mon, 21 Jul 2003 22:52:07 +0000 Subject: ChangeLog: Mon Jul 21 15:41:09 2003 Pradeep Gore --- TAO/orbsvcs/orbsvcs/Notify/Find_Worker_T.h | 1 + TAO/orbsvcs/orbsvcs/Notify/POA_Helper.cpp | 7 +++++-- TAO/orbsvcs/orbsvcs/Notify/POA_Helper.h | 4 ---- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'TAO/orbsvcs/orbsvcs/Notify') diff --git a/TAO/orbsvcs/orbsvcs/Notify/Find_Worker_T.h b/TAO/orbsvcs/orbsvcs/Notify/Find_Worker_T.h index 10aafd0b757..a46e1f7fd65 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Find_Worker_T.h +++ b/TAO/orbsvcs/orbsvcs/Notify/Find_Worker_T.h @@ -22,6 +22,7 @@ #include "orbsvcs/ESF/ESF_Proxy_Collection.h" #include "orbsvcs/ESF/ESF_Worker.h" #include "Container_T.h" +#include "Object.h" /** * @class TAO_Notify_Find_Worker_T diff --git a/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.cpp b/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.cpp index 7299bb672ef..0358e88b59a 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.cpp @@ -9,6 +9,7 @@ ACE_RCSID(RT_Notify, TAO_Notify_POA_Helper, "$Id$") #include "tao/debug.h" +#include "ID_Factory.h" TAO_Notify_POA_Helper::TAO_Notify_POA_Helper (void) { @@ -16,7 +17,6 @@ TAO_Notify_POA_Helper::TAO_Notify_POA_Helper (void) TAO_Notify_POA_Helper::~TAO_Notify_POA_Helper () { - } ACE_CString @@ -125,8 +125,11 @@ TAO_Notify_POA_Helper::long_to_ObjectId (CORBA::Long id ACE_ENV_ARG_DECL) const CORBA::Object_ptr TAO_Notify_POA_Helper::activate (PortableServer::Servant servant, CORBA::Long& id ACE_ENV_ARG_DECL) { + /// ID Factory for objects. + static TAO_Notify_ID_Factory id_factory; + // Generate a new ID. - id = this->id_factory_.id (); + id = id_factory.id (); if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG, "Activating object with id = %d in POA : %s\n", id, this->poa_->the_name ())); diff --git a/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.h b/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.h index f9c76d22c7f..44c38a774e8 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.h +++ b/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.h @@ -21,7 +21,6 @@ #include "ace/Copy_Disabled.h" #include "tao/PortableServer/PortableServer.h" -#include "ID_Factory.h" /** * @class TAO_Notify_POA_Helper @@ -72,9 +71,6 @@ protected: /// POA PortableServer::POA_var poa_; - /// ID Factory for objects. - TAO_Notify_ID_Factory id_factory_; - /// Convert id to ObjectID PortableServer::ObjectId* long_to_ObjectId (CORBA::Long id ACE_ENV_ARG_DECL) const; }; -- cgit v1.2.1