I want to run database cleaner whenever. I call for it or better make it run after every 10-15mins. but the problem is that I want it to run on a separate thread so that it doesn’t affect other operations.
I am using servlets to process the client request.
I want the database cleaned(i.e delete expired rows-one of the column contains the expiry time) after, like I said, every 15 mins. I am using jboss server and postgresql.
How can this be done?
The answer given by home in the comment is what I wanted – Check this: running periodic task at server side for servlet JSP MVC website There are a number of different ways to implement schedulers.