Programming and So

Tips and tricks in Java

Accessing Spring’s applicationContext from a Quartz job

leave a comment »

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.

Written by angelborroy

September 25, 2008 at 9:22 am

Posted in java

Tagged with ,

Leave a Reply