Setup For Web Cache


Installation in Apache or iAS

NOTE: the Oracle Cache Service examples require OCS4J's cache.jar which
      is installed only with Oracle9iAS Enterprise Edition.  The file system
      examples will run with Enterprise, Standard or Http editions.

1) copy the demo.zip  your apache webserver's doc_root as usual
   unix example: % cp demo.zip <your_apache_root>/htdocs

2) unzip the zip file
   unix example: % unzip -a demo.zip

3) For the file system demos, 

   edit the wcache.xml file in <your_doc_root>/WEB-INF and change
   the value (param-value) of reporoot to a temporary working directory 
   which exists in your file system.
   
   <init-param>
   <param-name>reporoot</param-name>
   <param-value>c:\work\temp\reporoot</param-value>
   </init-param>
    

4) For the OCS examples,

 - add the following to your zone properties file such as "zone.properties" :

   servlet.oracle.jsp.JspServlet.initArgs=ocs4j_file=<your_doc_root>\WEB-INF\misc-file\OCS4J.properties

 - edit the OCS4J.properties file diskPath entry to point to
    a directory where you want OCS4J to output the persistent cache
   for example,
   diskPath   = d:\tmp\ocscache
 
 - for other configurable Programmable Web Cache settings, such as 
   cache_policy_in_ocs, see the latest documentation on OTN.

 - for other configurable OCS4J settings, please refer to the OCS4J user
   manual. 

 - make sure that OCS4J's cache.jar is available in your web server's 
   classpath. 
  
6) restart your apache web server
   <your_apache_root>/bin/apachectl restart