A Design doubt from a Greenhorn
Need to create a
Thread that will run for every 15 seconds and update the Cache .
so that the
servlets will pick up the data from this cache instead of querying database.
what is the appropiate place to create this Thread ?
For this I was thinking in this way :
shall i start this Thread inside a ServletContextListener ?? will this be a appropiate place ?
Can any one suggest me a better approach or tell me if I am missing something.
Any help is really appreciated