blob: 5dec5dda194f5b2d5cbafa8b8be8397e53e9729d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#include "Direct_Consumer.h"
#include "LookupManager.h"
TAO_Notify_Tests_Direct_Consumer::TAO_Notify_Tests_Direct_Consumer ()
{
}
TAO_Notify_Tests_Direct_Consumer::~TAO_Notify_Tests_Direct_Consumer ()
{
}
void
TAO_Notify_Tests_Direct_Consumer::connect ()
{
// Get the POA
PortableServer::POA_var poa;
LOOKUP_MANAGER->resolve (poa, this->poa_name_.c_str ());
// set the POA
this->set_poa (poa.in ());
// Activate the consumer with the default_POA_.
CosNotifyComm::StructuredPushConsumer_var consumer_ref =
this->_this ();
// Register the activated object.
LOOKUP_MANAGER->_register (consumer_ref.in (), this->name_.c_str ());
}
|