summaryrefslogtreecommitdiff
path: root/TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java')
-rw-r--r--TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java b/TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java
index c2c2fbda5b2..505e06bb502 100644
--- a/TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java
+++ b/TAO/examples/Simulator/DOVEBrowser/PushConsumerFactory.java
@@ -27,20 +27,22 @@ public class PushConsumerFactory {
private Weapons weapons_;
- public PushConsumerFactory (DataHandler dataHandler, String nameServiceIOR) //, java.applet.Applet applet)
+ public PushConsumerFactory (DataHandler dataHandler, String nameServiceIOR, java.applet.Applet applet)
{
try {
dataHandler_ = dataHandler;
- orb_ = org.omg.CORBA.ORB.init (); // applet, null);
+ orb_ = org.omg.CORBA.ORB.init (applet, null);
boa_ = orb_.BOA_init ();
// Get the Naming Service initial reference
if (nameServiceIOR == null) {
- NS_Resolve ns_resolve_ = new NS_Resolve ();
- naming_service_object_ = ns_resolve_.resolve_name_service (orb_);
+ System.out.println ("Using the lookup protocol!");
+ NS_Resolve ns_resolve_ = new NS_Resolve ();
+ naming_service_object_ = ns_resolve_.resolve_name_service (orb_);
}
else {
+ System.out.println ("Using the following IOR: " + nameServiceIOR);
naming_service_object_ = orb_.string_to_object (nameServiceIOR);
}