Meaningless Drivel is fun!*
The moose likes Other Java Products and Servers and the fly likes Resin 2.x caching servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Resin 2.x caching servlets" Watch "Resin 2.x caching servlets" New topic
Author

Resin 2.x caching servlets

Darren Wheatley
Greenhorn

Joined: Nov 27, 2003
Posts: 11
Hi,

I have a shared hosting site that I use for my webapps. The ISP runs Resin 2.1.x with caching turned on.

When I deploy a new version of a Servlet Resin continues to serve the previous version until the cache timesout. The amount of time this takes can be lengthy.

Is there a way to force Resin to always serve the latest version of my Servlet given that my servlet doesn't output any HTML (it is a form processor that just sends an email and then redirects to a JSP page) and that I don't have any access to resin.conf?

Cheers

D.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Moving to the Other Java Server's forum where Resin specific issues are discussed.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Darren Wheatley
Greenhorn

Joined: Nov 27, 2003
Posts: 11
Hi,

I think the answer is to "touch" your web.xml file before you build your WAR file.

That seems to force an application rebuild, and then you get the latest version of your servlets.

Cheers

D.
 
jQuery in Action, 2nd edition
 
subject: Resin 2.x caching servlets
 
Similar Threads
Help with compiling sevlets!
Resin 2.x caching servlets
servlet-api.jar
COMPARISON OF RESIN VS. APACHE TOMCAT
Wordpress and jsp