I would like to create a generic job class which takes some arguments instead of creating job class before hand?
All the settings are stored in a db so we could just call “refresh” which drops all the jobs and re-registers them from the database.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can reuse the logic (job) and parametrize it by using JobDataMap. You can have as many triggers and jobs as you want. Just remember the rule that one job can have many triggers but not vice versa.