From 92a690effce55804df20a544440cc5e547c0ef94 Mon Sep 17 00:00:00 2001
From: Sebastian Rieger <sebastian.rieger@informatik.hs-fulda.de>
Date: Thu, 8 Nov 2018 00:18:06 +0100
Subject: [PATCH] two host version of rmi mandelbrot example

---
 .../src/verteiltesysteme/mandelbrot/rmi/MGuiRMI.java        | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/VerteilteSysteme-Examples/src/verteiltesysteme/mandelbrot/rmi/MGuiRMI.java b/VerteilteSysteme-Examples/src/verteiltesysteme/mandelbrot/rmi/MGuiRMI.java
index fd69f89..bf16eb2 100644
--- a/VerteilteSysteme-Examples/src/verteiltesysteme/mandelbrot/rmi/MGuiRMI.java
+++ b/VerteilteSysteme-Examples/src/verteiltesysteme/mandelbrot/rmi/MGuiRMI.java
@@ -225,7 +225,7 @@ public class MGuiRMI implements ActionListener, ChangeListener, MouseListener, M
     this.host2TextField.setText("localhost");
     this.panel.add(this.calcButton);
     this.panel.add(this.host1TextField);
-    //this.panel.add(this.host2TextField);
+    this.panel.add(this.host2TextField);
     this.frame.add(this.panel);
     this.frame.setSize(700, 720);
     this.frame.setVisible(true);
@@ -338,8 +338,8 @@ public class MGuiRMI implements ActionListener, ChangeListener, MouseListener, M
         //Registry registry = LocateRegistry.createRegistry(1099);
         this.remoteCalcObj = (RMIMandelbrotCalculationsInterface) registry.lookup("RMIMandelbrotCalculationsInterface");
         //this.remoteCalcObj.setView(ULx, ULy, LRx, LRy);
-        //Registry registry2 = LocateRegistry.getRegistry(hostname2);
-        this.remoteCalcObj2 = (RMIMandelbrotCalculationsInterface) registry.lookup("RMIMandelbrotCalculationsInterface2");
+        Registry registry2 = LocateRegistry.getRegistry(hostname2);
+        this.remoteCalcObj2 = (RMIMandelbrotCalculationsInterface) registry2.lookup("RMIMandelbrotCalculationsInterface");
         //this.remoteCalcObj2.setView(ULx, ULy, LRx, LRy);
         /** CODE SEBASTIAN
 
-- 
GitLab