com.rmiproxy.registry
Interface ProxyRegistry
- All Superinterfaces:
- java.rmi.registry.Registry, java.rmi.Remote
- All Known Implementing Classes:
- AbstractProxyRegistry
- public interface ProxyRegistry
- extends java.rmi.registry.Registry
ProxyRegistry defines the remote interface to the proxy server.
The interface is nothing more than the Registry interface plus the Naming.list(String) method.
Consider that a client can only obtain an initial RMI reference via
a naming service, which may have to be accessed via one or more proxies.
Any RMI reference returned by the proxy, including this one,
is swizzled into a reference to the proxy.
Any RMI reference passed to the proxy by the client is similarly swizzled into
a reference to the proxy (for callbacks).
Now consider a server; it binds itself to the local Registry. If these are executing
behind a firewall there will be one or more proxies intervening, so the bind
is exported to the proxy nearest. This goes through all the same processes as above,
with the result that the server now appears to be running in the proxy. If the server
returns a reference to another remote object, that object also gets proxied, etcetera
ad infinitum.
| Fields inherited from interface java.rmi.registry.Registry |
REGISTRY_PORT |
| Methods inherited from interface java.rmi.registry.Registry |
bind, list, lookup, rebind, unbind |
Copyright © 2000, 2003 Telekinesis Pty Ltd, Box 82/85 Grattan St, Carlton 3053, Victoria, Australia. All rights reserved.