• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP caching with Apache web server

 
Sukh Mutneja
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sukh Mutneja
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic