I have a servlet in which in the init method some master data is getting cached. The problem is that whenever in WSAD i save a resouce in the web project this particular servlet gets destroyed and the init method gets called again thereby rebuilding the entire cache. The servlet gets loaded on startup.
Like Bear said, that's what happens when the web app gets reloaded. Of course you wouldn't be reloading the web app every 15 minutes in production, would you? So I don't consider that a problem worth doing anything about.
Die Fledermaus does not fear such a tiny ad:
a bit of art, as a gift, the permaculture playing cards