I wish to declare a step-scoped listener, common to many jobs which prepends its logging statements with a job-specific tag (i.e. "JOB1 : chunk committed"). The simplest configuration for the common listener is to configure as:
There are a few more reductions that I am planning around the same pattern if someone can help explain how to achieve it!Code:<bean ... scope="step" p:logToken="#{jobParameters[logToken]}" />
The "logToken" job property is essentially "static". I want each job to declare it alongside the job itself such that no invoker of the job (JobLauncher, Quartz or anything else) has to specify or know about it.
How do I do this? On perhaps a related note, can I define a set of default JobParameters?


Reply With Quote