diff options
Diffstat (limited to 'TAO/tests/MProfile_Forwarding/Servant_Locator.cpp')
-rwxr-xr-x | TAO/tests/MProfile_Forwarding/Servant_Locator.cpp | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/TAO/tests/MProfile_Forwarding/Servant_Locator.cpp b/TAO/tests/MProfile_Forwarding/Servant_Locator.cpp deleted file mode 100755 index 7858442596d..00000000000 --- a/TAO/tests/MProfile_Forwarding/Servant_Locator.cpp +++ /dev/null @@ -1,88 +0,0 @@ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// TAO/tests/POA/Forwarding/Servant_Locator -// -// = FILENAME -// Servant_Locator.cpp -// -// = DESCRIPTION -// Implementation of MyFooServantLocator class , used with a POA -// having a NON_RETAIN policy. -// -// = AUTHOR -// Irfan Pyarali -// Michael Kircher -// -// ============================================================================ - -#include "Servant_Locator.h" -#include "testC.h" - - -ACE_RCSID(Forwarding, Servant_Locator, "$Id$") - -Servant_Locator::Servant_Locator (CORBA::ORB_ptr orb_ptr) - - : orb_var_ (CORBA::ORB::_duplicate (orb_ptr)) -{ - // no-op -} - -Servant_Locator::~Servant_Locator () -{ - //delete servant_ptr_; -} - - -PortableServer::Servant -Servant_Locator::preinvoke (const PortableServer::ObjectId &oid, - PortableServer::POA_ptr /* poa_ptr */, - const char * /*operation*/, - PortableServer::ServantLocator::Cookie & /* cookie */, - CORBA::Environment &ACE_TRY_ENV) -{ - CORBA::String_var s = PortableServer::ObjectId_to_string (oid); - - ACE_DEBUG ((LM_DEBUG, - "The OID is <%s> \n", s.in ())); - if (ACE_OS::strstr (s.in (), "Simple_Server") == 0) - { - ACE_THROW_RETURN (CORBA::OBJECT_NOT_EXIST (), 0); - } - - // Combined IOR stuff - Simple_Server_var server = - Simple_Server::_narrow (this->objref_.in (), - ACE_TRY_ENV); - ACE_CHECK_RETURN (0); - - ACE_DEBUG ((LM_DEBUG, - "Got the narrowed secondary server too... \n")); - - ACE_DEBUG ((LM_DEBUG, - "About to throw exception.. \n")); - - ACE_THROW_RETURN (PortableServer::ForwardRequest ( - CORBA::Object::_duplicate (server.in ())), - 0); - -} - -void -Servant_Locator::postinvoke (const PortableServer::ObjectId &, - PortableServer::POA_ptr , - const char *, - PortableServer::ServantLocator::Cookie , - PortableServer::Servant , - CORBA::Environment &) -{ -} - -void -Servant_Locator::set (CORBA::Object_var objref) -{ - this->objref_ = CORBA::Object::_duplicate (objref); -} |