MethodInvokingJobDetailFactoryBean Pass Parameter

MethodInvokingJobDetailFactoryBean Pass Parameter

If you are working with Spring with Quartz to schedule the job and wanted to pass parameter while using the MethodInvokingJobDetailFactoryBean Pass Parameter please use below:

  • Spring bean:

  • Java class: CronQuartzJob.java:

  • Note: If you still getting exception in spring where its says method not found please include empty method as well. I belive this is bug using MethodInvokingJobDetailFactoryBean as below:

Extras:

  • If you want to pass single parameter use bean as below:

  • Method without any parameter:

Reference:

Leave a Reply

Your email address will not be published. Required fields are marked *