R
Rob Dempster
I am trying to get RMI to work with the client, the server and the
rmiregistry running of disjoint hosts. It is intended that the
rmiregistry run on the host serving the dynamically downloadable
classes and stubs.
I have tried this:
String name = "Compute";
try {
registry =
LocateRegistry.getRegistry("host.holding.downloadables");
Compute engine = new ComputeEngine();
registry.rebind("compute", engine);
System.out.println("ComputeEngine bound");
} catch (Exception e) {
System.err.println("ComputeEngine exception: " +
e.getMessage());
e.printStackTrace();
}
but it complains about java.rmi.AccessException:
Registry.Registry.rebind disallowed;
Is what I am trying feasible or not.
Thanks,
Rob Dempster
rmiregistry running of disjoint hosts. It is intended that the
rmiregistry run on the host serving the dynamically downloadable
classes and stubs.
I have tried this:
String name = "Compute";
try {
registry =
LocateRegistry.getRegistry("host.holding.downloadables");
Compute engine = new ComputeEngine();
registry.rebind("compute", engine);
System.out.println("ComputeEngine bound");
} catch (Exception e) {
System.err.println("ComputeEngine exception: " +
e.getMessage());
e.printStackTrace();
}
but it complains about java.rmi.AccessException:
Registry.Registry.rebind disallowed;
Is what I am trying feasible or not.
Thanks,
Rob Dempster