00001 // $Id: ServerObject_i.cpp 76995 2007-02-11 12:51:42Z johnnyw $ 00002 00003 #include "tao/ImR_Client/ServerObject_i.h" 00004 #include "tao/PortableServer/Root_POA.h" 00005 #include "tao/orbconf.h" 00006 00007 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00008 00009 ServerObject_i::ServerObject_i (CORBA::ORB_ptr orb, 00010 PortableServer::POA_ptr poa) 00011 : orb_ (CORBA::ORB::_duplicate (orb)), 00012 poa_ (PortableServer::POA::_duplicate (poa)) 00013 { 00014 } 00015 00016 void 00017 ServerObject_i::ping (void) 00018 { 00019 } 00020 00021 void 00022 ServerObject_i::shutdown (void) 00023 { 00024 // Note : We want our child POAs to be able to unregister themselves from 00025 // the ImR, so we must destroy them before shutting down the orb. 00026 poa_->destroy(1, 0); 00027 this->orb_->shutdown (0); 00028 } 00029 00030 PortableServer::POA_ptr 00031 ServerObject_i::_default_POA (void) 00032 { 00033 return PortableServer::POA::_duplicate (this->poa_.in ()); 00034 } 00035 00036 00037 TAO_END_VERSIONED_NAMESPACE_DECL