• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resin 2.x caching servlets

 
Darren Wheatley
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Other Java Server's forum where Resin specific issues are discussed.
 
Darren Wheatley
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic