summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Notify/lib/Direct_Consumer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/Notify/lib/Direct_Consumer.cpp')
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Direct_Consumer.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/Notify/lib/Direct_Consumer.cpp b/TAO/orbsvcs/tests/Notify/lib/Direct_Consumer.cpp
new file mode 100644
index 00000000000..e4550193bd1
--- /dev/null
+++ b/TAO/orbsvcs/tests/Notify/lib/Direct_Consumer.cpp
@@ -0,0 +1,33 @@
+// $Id$
+
+#include "Direct_Consumer.h"
+
+ACE_RCSID(lib, TAO_Direct_Consumer, "$Id$")
+
+#include "LookupManager.h"
+
+TAO_Notify_Tests_Direct_Consumer::TAO_Notify_Tests_Direct_Consumer (void)
+{
+}
+
+TAO_Notify_Tests_Direct_Consumer::~TAO_Notify_Tests_Direct_Consumer ()
+{
+}
+
+void
+TAO_Notify_Tests_Direct_Consumer::connect (void)
+{
+ // 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 ());
+}