diff options
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp index 6e614ef54ba..09e8a3fa84b 100644 --- a/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp +++ b/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp @@ -22,6 +22,8 @@ TAO_EC_ConsumerAdmin::TAO_EC_ConsumerAdmin (TAO_EC_Event_Channel *ec, this->supplier_set_ = this->event_channel_->create_proxy_push_supplier_set (); } + this->default_POA_ = + this->event_channel_->consumer_poa (); } TAO_EC_ConsumerAdmin::~TAO_EC_ConsumerAdmin (void) @@ -31,13 +33,6 @@ TAO_EC_ConsumerAdmin::~TAO_EC_ConsumerAdmin (void) } void -TAO_EC_ConsumerAdmin::set_default_POA (PortableServer::POA_ptr poa) -{ - this->default_POA_ = - PortableServer::POA::_duplicate (poa); -} - -void TAO_EC_ConsumerAdmin::connected (TAO_EC_ProxyPushConsumer *consumer, CORBA::Environment &ACE_TRY_ENV) { @@ -99,10 +94,6 @@ TAO_EC_ConsumerAdmin::obtain_push_supplier (CORBA::Environment &ACE_TRY_ENV) TAO_EC_ProxyPushSupplier* supplier = this->event_channel_->create_proxy_push_supplier (); - PortableServer::POA_var poa = - this->event_channel_->supplier_poa (ACE_TRY_ENV); - supplier->set_default_POA (poa.in ()); - return supplier->_this (ACE_TRY_ENV); } |