1 // EchoEventSupplier_i.cpp
2 // Implements a PushSupplier.
4 #include "EchoEventSupplier_i.h"
5 #include "tao/PortableServer/PS_CurrentC.h"
7 // Constructor duplicates the ORB reference.
8 EchoEventSupplier_i::EchoEventSupplier_i(CORBA::ORB_ptr orb
)
9 : orb_(CORBA::ORB::_duplicate(orb
))
14 // Override the disconnect_push_Supplier() operation.
15 void EchoEventSupplier_i::disconnect_push_supplier()
17 // Deactivate this object.
18 CORBA::Object_var obj
= orb_
->resolve_initial_references("POACurrent");
19 PortableServer::Current_var current
= PortableServer::Current::_narrow(obj
.in());
20 PortableServer::POA_var poa
= current
->get_POA();
21 PortableServer::ObjectId_var objectId
= current
->get_object_id();
22 poa
->deactivate_object(objectId
.in());