// $Id: EventSequenceSupplier_i.cpp 83415 2008-10-23 08:18:15Z johnnyw $

#include "EventSequenceSupplier_i.h"
#include "tao/PortableServer/PS_CurrentC.h"

EventSequenceSupplier_i::EventSequenceSupplier_i(CORBA::ORB_ptr orb)
  : orb_(CORBA::ORB::_duplicate(orb))
{
}

void
EventSequenceSupplier_i::disconnect_sequence_push_supplier ()
{

   CORBA::Object_var obj = orb_->resolve_initial_references ("POACurrent");
   PortableServer::Current_var current =
                          PortableServer::Current::_narrow (obj.in());
   PortableServer::POA_var poa = current->get_POA ();
   PortableServer::ObjectId_var objectId = current->get_object_id ();
   poa->deactivate_object (objectId.in());

}

void
EventSequenceSupplier_i::subscription_change (
        const CosNotification::EventTypeSeq &,
        const CosNotification::EventTypeSeq &
      )
{
}

