java - Using single RMI Registry -
I am using RMI for a project which I am currently working on and I have a single RMI Registry
But when I try to do this, I get an error
java.rmi.AccessException: Registry. Registry.bind rejected; The original / 192.168.0.9 is a non-local host
I have done this and it seems that the remote hosts are binding on default by default, what I want to know is that such overriding or bypassing Any way
If anyone has any suggestions on how to get past this issue, they would be highly appreciated, I have tried to use various policy files and override the security manager, but no work Has been doing.
There is a way to get around the border but this is what it is: A work-around Anyway, feel free to try it out. It works for us.
Running the central RMI registry that runs a small service on the host that will bind a remote object with only one remote method: proxyRebind The implementation of this method is only to the given object in the central registry (It will not fail because the registry is on the same machine as this machine).
All other hosts only want to see the remote objects and proxies. Rebund with your remote object.
This works because permission to look at the remote hosted registry is unsuccessful because your original attempt was unsuccessful because the restrictions on hosted registries are not permitted.
Let me know that you need more clarity about it.
/ RS
Comments
Post a Comment