|
|||||
|
In remoting, a proxy is made up of two different objects: the TransparentProxy object and the RealProxy object. Also, the remoting framework makes it easy to extend the RealProxy object. In fact, creating a custom proxy (using the RealProxy class) should be encouraged as part of the remoting framework's extensibility. This helps in implementing custom behavior prior to dispatching the method call to the remote object. In this context, we can take the example of a load balancing proxy. The custom proxy can poll several middle-tier servers to determine the one which has the lowest load. The remote call now can be despatched to that server. When a call is made between objects in the same Application Domain, only a normal local call is required. A call across Application Domains requires a remote call.
|