Caching Rules and Expiration Rules

Caching with Third-Party Application Servers 12-5 Click the Cache check box. From the Expiration list, select Expire 60 seconds after cache entry and remove immediately . In the Match URL By section, select Path Prefix and enter TechnologySamplesCalendar. In the HTTP Methods section, click GET. In the Sessions tab of Create Caching Rule page, select both the IBMSession sessions, one using setting Without Session and the other using setting With Session . 4. Point the browser to Oracle Web Cache with the following URL: http:web_cache_hostname:WebCache-admin_portTechnologySamplesCalendar See Section 2.11.1.1 to determine the port. The output is the same when you accessed Calendar directly from WebSphere Application Server. This time, Oracle Web Cache caches the Calendar output. 5. View the contents of the cache, as described in Section 8.6 , to ensure that Calendar is cached. When you reload the page, notice that the cached response appears faster than when you access the WebSphere server directly. Because the expiration rule for this URL is set to 60 seconds, Oracle Web Cache expires the cached content after 60 seconds and reflects the content the next time the user requests the page. After deploying Oracle Web Cache, if the browser displays a HTTP 404 Page not found error, perform the following steps: 1. In the WebSphere Server WAS_homeconfigcellsplugin-cfg.xml file, add VirtualHost Name=:WebCache-admin_port. 2. In the WebSphere Application Server administrative console, navigate to Environment Virtual Hosts. 3. Follow the prompts to add a new virtual host.

12.3 Apache Tomcat

Apache Tomcat, Version 4.1 is a servlet container. It is included with the Apache Jakarta Project. The Apache Tomcat installation includes several JSP and Java servlet examples. This section explains how to configure Oracle Web Cache to cache the following content: ■ Section 12.3.1, Apache Tomcat Snoop JSP ■ Section 12.3.2, Apache Tomcat Session Servlet Follow the instructions enclosed within the Apache Tomcat binary for installation. Apache Tomcat requires the Java Development Kit JDK. For more information, see: ■ http:jakarta.apache.orgtomcat for further information about Apache Tomcat ■ http:java.sun.com for further information about downloading and installing JDK