Browse Source

changed RMI registration name

master
Sebastian Rieger 6 years ago
parent
commit
c3592be2f3
  1. 2
      VerteilteSysteme-Examples/src/verteiltesysteme/mandelbrot/rmi/MGuiRMI.java
  2. 2
      VerteilteSysteme-Examples/src/verteiltesysteme/mandelbrot/rmi/RMIMandelbrotCalculationsServer.java

2
VerteilteSysteme-Examples/src/verteiltesysteme/mandelbrot/rmi/MGuiRMI.java

@ -197,7 +197,7 @@ public class MGuiRMI implements ActionListener, ChangeListener, MouseListener, M
System.out.println("Verbinde mit RMI Registry auf Host: " + hostname);
try {
Registry registry = LocateRegistry.getRegistry(hostname);
this.remoteCalcObj = (RMIMandelbrotCalculationsInterface) registry.lookup("RMIEchoInterface");
this.remoteCalcObj = (RMIMandelbrotCalculationsInterface) registry.lookup("RMIMandelbrotCalculationsInterface");
System.out.println("Rechnen");
long timestampStart = System.currentTimeMillis();

2
VerteilteSysteme-Examples/src/verteiltesysteme/mandelbrot/rmi/RMIMandelbrotCalculationsServer.java

@ -50,7 +50,7 @@ public class RMIMandelbrotCalculationsServer implements RMIMandelbrotCalculation
// Bind the remote object's stub in the registry
Registry registry = LocateRegistry.getRegistry();
registry.bind("RMIEchoInterface", stub);
registry.bind("RMIMandelbrotCalculationsInterface", stub);
System.err.println("Server ready");
} catch (Exception e) {

Loading…
Cancel
Save