I am storing data in application scope. I want to clear this data after every hour. Infact using it as cache for one hour. What is the best way to implement this? Earlier we used session scope to store this data and it used to get expired after session gets expired. As this data is unique across the application we want to store it in application scope.
Share
We found a way to clear application scope variables using ServletContextListener and Timer.
Add Listener in web.xml