1 #include "Direct_Supplier.h"
3 #if ! defined (__ACE_INLINE__)
4 #include "Direct_Supplier.inl"
5 #endif /* __ACE_INLINE__ */
8 #include "LookupManager.h"
10 TAO_Notify_Tests_Direct_Supplier::TAO_Notify_Tests_Direct_Supplier (ACE_CString
& target
)
15 TAO_Notify_Tests_Direct_Supplier::~TAO_Notify_Tests_Direct_Supplier ()
20 TAO_Notify_Tests_Direct_Supplier::connect ()
23 PortableServer::POA_var poa
;
24 LOOKUP_MANAGER
->resolve (poa
, this->poa_name_
.c_str ());
27 this->set_poa (poa
.in ());
29 // Get hold of the reference.
30 CosNotifyComm::StructuredPushSupplier_var supplier_ref
=
33 // Register the activated object.
34 LOOKUP_MANAGER
->_register (supplier_ref
.in (), this->name_
.c_str ());
36 // Resolve the target object.
37 LOOKUP_MANAGER
->resolve (this->target_object_
, this->target_
.c_str ());
41 TAO_Notify_Tests_Direct_Supplier::send_event (const CosNotification::StructuredEvent
& event
)
43 ACE_ASSERT (!CORBA::is_nil (this->target_object_
.in ()));
45 this->target_object_
->push_structured_event (event
);