From e72c120de7b11f9eeb735bd9e2e72fbbee8bd89c Mon Sep 17 00:00:00 2001 From: bala Date: Tue, 23 Nov 2004 16:44:34 +0000 Subject: *** empty log message *** --- TAO/CIAO/DAnCE/ciao/Home_Servant_Impl_T.cpp | 81 +++++++++++++++++------------ TAO/CIAO/DAnCE/ciao/Home_Servant_Impl_T.h | 17 +++--- TAO/CIAO/DAnCE/ciao/Servant_Impl_Base.cpp | 13 ++--- TAO/CIAO/DAnCE/ciao/Servant_Impl_T.cpp | 5 +- 4 files changed, 68 insertions(+), 48 deletions(-) diff --git a/TAO/CIAO/DAnCE/ciao/Home_Servant_Impl_T.cpp b/TAO/CIAO/DAnCE/ciao/Home_Servant_Impl_T.cpp index 5719b35f507..daf454520bb 100644 --- a/TAO/CIAO/DAnCE/ciao/Home_Servant_Impl_T.cpp +++ b/TAO/CIAO/DAnCE/ciao/Home_Servant_Impl_T.cpp @@ -7,8 +7,8 @@ namespace CIAO { - template ::~Home_Servant_Impl (void) { - const obj_iterator end (this->objref_map_.end ()); - for (obj_iterator iter (this->objref_map_.begin ()); + // @@ JAI if you have tyedefed something, please use all CAPS. + const obj_iterator end = + this->objref_map_.end (); + + for (obj_iterator iter = + this->objref_map_.begin (); iter != end; ++iter) { this->remove_component ((*iter).int_id_); @@ -58,8 +62,8 @@ namespace CIAO // Operations for CCMHome interface. - template remove (ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_CHECK; - if (component_map_.unbind (oid.in (), servant) == 0) - { - PortableServer::ServantBase_var safe (servant); - servant->_ciao_passivate (ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_CHECK; - } + // @@ Jai, could you please add a line of documentation to say + // what this is supposed to be doing? + _ciao_comp->remove (ACE_ENV_SINGLE_ARG_PARAMETER); + ACE_CHECK; + + if (component_map_.unbind (oid.in (), servant) == 0) + { + + PortableServer::ServantBase_var safe (servant); + servant->_ciao_passivate (ACE_ENV_SINGLE_ARG_PARAMETER); + ACE_CHECK; + } } } // Operations for keyless home interface. - template container_->get_objref (this ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (COMP::_nil ()); @@ -240,7 +257,7 @@ namespace CIAO ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (Components::CCMObject::_nil ()); - this->objref_map_.bind (oid.in (), + this->objref_map_.bind (oid.in (), Components::CCMObject::_duplicate (ccmobjref.in ())); if (this->component_map_.bind (oid.in (), svt) == 0) @@ -251,8 +268,8 @@ namespace CIAO return ho._retn (); } - template container_->get_objref (this); - CORBA::Object_var objref = this->container_->get_objref (this); - Components::CCMObject_var ccmobjref = + Components::CCMObject_var ccmobjref = Components::CCMObject::_narrow (objref.in () ACE_ENV_ARG_PARAMETER); PortableServer::ObjectId_var oid; - this->container_->uninstall_component - (ccmobjref.in (), - oid.out () - ACE_ENV_ARG_PARAMETER); + + this->container_->uninstall_component ( ccmobjref.in (), + oid.out () + ACE_ENV_ARG_PARAMETER); } ::Components::ConnectionDescriptions * diff --git a/TAO/CIAO/DAnCE/ciao/Servant_Impl_T.cpp b/TAO/CIAO/DAnCE/ciao/Servant_Impl_T.cpp index 4e39010461f..045d44b0040 100644 --- a/TAO/CIAO/DAnCE/ciao/Servant_Impl_T.cpp +++ b/TAO/CIAO/DAnCE/ciao/Servant_Impl_T.cpp @@ -209,6 +209,7 @@ namespace CIAO ) ACE_THROW_SPEC ((CORBA::SystemException)) { + // @@ Jai, could you please see why this is required? ::Components::SessionComponent_var temp = ::Components::SessionComponent::_narrow ( this->executor_.in () @@ -217,9 +218,7 @@ namespace CIAO ACE_CHECK; if (! ::CORBA::is_nil (temp.in ())) - { - temp->ccm_passivate (ACE_ENV_SINGLE_ARG_PARAMETER); - } + temp->ccm_passivate (ACE_ENV_SINGLE_ARG_PARAMETER); } } -- cgit v1.2.1