A method for distributing code resident on a remote application server to
a local server. When a client requests information, a request handler on
the local server handles the request. If the information is available on
the local server, the request handler satisfies the request using this
information. If the information is not available locally, the request
handler accesses the remote application server to obtain the requested
information. The request handler forwards the information to the client
and caches it on the local server. Where the information cannot be
transferred to the local application server, the request handler
establishes a proxy to the remote application server that forwards a
client request to the remote application server and a response from the
remote application server to the client. The client communicates
transparently with the remote application server via the proxy on the
local application server.