I need to try to create and send emails within a JSF application, but if an exception is encountered, store the email in a database table and periodically check this table (say every 10 mins) to try and send the email again.
I have the email piece working, but want to understand the basic techniques I should try to create the polling service. I was thinking perhaps an @ApplicationScoped
bean, but am not sure of how to create a process which runs in the bean every 10 mins or so.
Any advice appreciated.