Patent ID: 7552189

Claim:
A computer-implemented system for using virtual directories to respond to uniform resource indicator requests in application servers, comprising: at least one processor and memory, the at least one processor and memory implementing: an application server including a servlet container for receiving a plurality of uniform resource indicator requests; a resource directory containing shared resources, wherein a uniform resource indicator request to access a resource is redirected to a virtual directory instead of an original document root located on the application server, and wherein redirection prevents resources from being copied to satisfy the uniform resource indicator request; a configuration file used by the servlet container in responding to said plurality of uniform resource indicator requests, wherein the virtual directory located on the application server is an entry in the configuration file that includes a local-path element for specifying a physical location of the resource directory, and a plurality of uri-pattern elements, each element specifying a pattern of uniform resource indicator requests, further wherein at least one of the plurality of uri-pattern elements includes a wildcard, and wherein the virtual directory is accessible by a plurality of different servlet applications, wherein each servlet application uses its own virtual directory to access the resource directory; wherein the resource directory containing shared resources is used to service each one of the plurality of uniform resource indicator requests by matching a pattern specified by at least one of the plurality of uri-pattern elements; wherein if the virtual directory indicates a matched pattern specified by at least one of the plurality of uri-pattern elements, the system allows for concurrent synchronized access to the shared resources instead of providing copies of the shared resources to satisfy the plurality of uniform resource indicator requests; and wherein if the virtual directory does not indicate a matched pattern specified by at least one of the plurality of uri-pattern elements, then the system provides copies of the required resource to satisfy the plurality of uniform resource indicator requests.