Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / ImR_Client / ServerObject_i.cpp
blob050cf12341c643dac9b27fc4b15760e2dd1544a0
1 #include "tao/ImR_Client/ServerObject_i.h"
2 #include "tao/PortableServer/Root_POA.h"
3 #include "tao/orbconf.h"
5 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
7 ServerObject_i::ServerObject_i (CORBA::ORB_ptr orb,
8 PortableServer::POA_ptr poa)
9 : orb_ (CORBA::ORB::_duplicate (orb)),
10 poa_ (PortableServer::POA::_duplicate (poa))
14 void
15 ServerObject_i::ping ()
19 void
20 ServerObject_i::shutdown ()
22 // Note : We want our child POAs to be able to unregister themselves from
23 // the ImR, so we must destroy them before shutting down the orb.
24 poa_->destroy(1, 0);
25 this->orb_->shutdown (false);
28 PortableServer::POA_ptr
29 ServerObject_i::_default_POA ()
31 return PortableServer::POA::_duplicate (this->poa_.in ());
35 TAO_END_VERSIONED_NAMESPACE_DECL