wood burning stoves 2.0*
The moose likes Tomcat and the fly likes JSP caching with Apache web server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JSP caching with Apache web server" Watch "JSP caching with Apache web server" New topic
Author

JSP caching with Apache web server

Sukh Mutneja
Greenhorn

Joined: Jul 15, 2008
Posts: 2
I am looking to implement caching for JSP pages served from Tomcat using Apache and mod_cache. I have found limited information detailing how this works. I was hoping someone may have tried this before and maybe even had some lessons learned? These JSP pages are basically rendered once, no content is specific to each user session, which is why they appear to be good candidates for caching.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42359
    
  64
In that case, why not make them HTML pages? Render them once into files in a publicly accessible directory, and you're done.

If you still want to use servlets/JSPs, check out CacheHttpServlet and EhCache for some ideas.


Ping & DNS - my free Android networking tools app
Sukh Mutneja
Greenhorn

Joined: Jul 15, 2008
Posts: 2
Thanks. Creating jsp is a requirement. jsp rendition is created in Documentum and published on the tomcat app server which is behind the firewall. we have two caching servers outside the firewall which need to work as proxy/reverse proxy and cache the jsp from the tomcat. Our jsp at this moment does not have any major functionalities they are mere htmls saved as jsp's. We are having jsp's because they will have a bigger role in future phases of the project. we will not be able to implement ehcache for this rollout.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP caching with Apache web server