I want to specify the content of a system-generated mail by using a JSP.
I also needs some kind of mechanism to run some class (any kind) every 5 minutes to check database for new content, generate the mail (using jsp), and sending the mail.
Which components of Jboss is best suited to do this ?