Accessing Spring’s applicationContext from a Quartz job
Quartz is a job scheduler for java. Execution periods can be expressed using the same expressions used in cron. Jobs are lauched by Quartz as static classes outside in a standalone way.
If a Quartz job uses a bean from inside a webapp, applicationContext from Spring must be shared with the job. I’ve found two resources in order to perform this operation:
Both articles explain the same. However, I must force my imagination to understand the first one and I can read the second one naturally. Curious.