From b477657b202a8747986b64b2240ae58fddf7db29 Mon Sep 17 00:00:00 2001
From: Sebastian Rieger <sebastian.rieger@informatik.hs-fulda.de>
Date: Wed, 7 Nov 2018 17:39:12 +0100
Subject: [PATCH] new rmi mandelbrot version

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

diff --git a/VerteilteSysteme-Examples/src/verteiltesysteme/mandelbrot/rmi/MGuiRMI.java b/VerteilteSysteme-Examples/src/verteiltesysteme/mandelbrot/rmi/MGuiRMI.java
index c91de28..fd69f89 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);
@@ -335,10 +335,11 @@ public class MGuiRMI implements ActionListener, ChangeListener, MouseListener, M
     	  //double ULx = -0.16099999999999995, ULy = -0.9365333333333333, LRx = -0.03533333333333327, LRy = -0.8108666666666666;
 	      //double ULx = -2, ULy = 2, LRx = 2, LRy = -2;
         Registry registry = LocateRegistry.getRegistry(hostname1);
+        //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) registry2.lookup("RMIMandelbrotCalculationsInterface");
+        //Registry registry2 = LocateRegistry.getRegistry(hostname2);
+        this.remoteCalcObj2 = (RMIMandelbrotCalculationsInterface) registry.lookup("RMIMandelbrotCalculationsInterface2");
         //this.remoteCalcObj2.setView(ULx, ULy, LRx, LRy);
         /** CODE SEBASTIAN
 
-- 
GitLab