title: Java Servlet - How to cached Servlet Context to all instance?
body: <p>I just have a text file and it will be updated by another shell program (15') and my Java Servlet is used to read this file and return to client in Web Browser. But I don't know how to make Servlet Context set timeout 15' and reread this file to store in memory?</p>
  
  <p>Edit: Ok, thanks, I've found my solution is using a simple Thread + ServletContextListener.</p>