title: java web application - how to create scheduled task or event listener
body: <p>I'm creating a web application, based on struts.. The thing is, that i need to do some scheduled task, or better than that an event listener...</p>
  
  <p>The idea is that my web app saves some date fields in a database, and i want to make something that checks the content of every rows, and execute a method for the fields which date is the current date.</p>
  
  <p>My problem is that i have never performed a listener or a scheduled task before, and I'm very confused i don't know how to do it.. I've been reading other articles, but i don't get how to integrate it with my webapp..</p>
  
  <p>Thanks in advance !</p>