Using JSPs in a distributed environment

Often, a multiple-machine configuration does not share one file system. If someone requests the URL of a JSP, the web server's real path is not the "real" path that actually gets the page. It must be translated into the path that JRun uses to respond to the request.

JRun provides virtual path mapping properties to let you map a request to the real path (translate the path). You code virtual path mappings in each web application's WEB-INF/jrun-web.xml file, as shown in the following example:

...
<virtual-mapping>
   <resource-path>/images/*</resource-path>
   <system-path>/usr/local/images</system-path>
</virtual-mapping>
...

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/jrun/4/JRun_Administrators_Guide/connectors6.htm