java - Spring : Schedule a task which takes a parameter -
i have class following function:
public class classa{ ... ... void function_to_be_scheduled(string param){ ... ... } }
i want schedule function using scheduled-tasks element of task namespace.
<task:scheduled-tasks> <task:scheduled ref="beana" method="function_to_be_scheduled" cron="${cron}"/> </task:scheduled-tasks>
how pass parameter function want schedule?
according docs cant.
notice methods scheduled must have void returns , must not expect arguments.
Comments
Post a Comment