=default for generated implementation copy ctor
[ACE_TAO.git] / TAO / tests / Reliable_Oneways / Oneway_Receiver.cpp
blob0427cbd91c53ea58afcf246d450e406c3a9c1be7
1 #include "Oneway_Receiver.h"
2 #include "Shutdown_Helper.h"
4 Oneway_Receiver::Oneway_Receiver (CORBA::ORB_ptr orb)
5 : orb_ (CORBA::ORB::_duplicate (orb))
9 void
10 Oneway_Receiver::raise_no_permission ()
12 throw CORBA::NO_PERMISSION ();
15 void
16 Oneway_Receiver::destroy ()
18 PortableServer::POA_var poa = this->_default_POA ();
20 PortableServer::ObjectId_var id =
21 poa->servant_to_id (this);
23 poa->deactivate_object (id.in ());
26 Test::Shutdown_Helper_ptr
27 Oneway_Receiver::get_shutdown_helper ()
29 Shutdown_Helper *shutdown_helper;
30 ACE_NEW_THROW_EX (shutdown_helper,
31 Shutdown_Helper (this->orb_.in ()),
32 CORBA::NO_MEMORY ());
34 PortableServer::ServantBase_var transfer_ownership(shutdown_helper);
36 return shutdown_helper->_this ();