mardi 31 mars 2015

Exception handling by scheduled-tasks element of Task namespace

I am using the scheduled-tasks element of the task namespace for scheduling a job.


<task:scheduled-tasks> <task:scheduled ref="BeanA" method="retrieve" cron="${cron}"/> </task:scheduled-tasks>



public void retrieve() throws InstantiationException,IllegalAccessException,ClassNotFoundException,SQLException{}


The method retrieve throws certain exceptions, i don't want to handle the exception in the method itself due to some requirements, How can i ascertain that the job runs even if a particular run throws an exception?


Aucun commentaire:

Enregistrer un commentaire