wood burning stoves 2.0*
The moose likes Spring and the fly likes Making Quartz scheduler Spring-managed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Making Quartz scheduler Spring-managed" Watch "Making Quartz scheduler Spring-managed" New topic
Author

Making Quartz scheduler Spring-managed

Pranav Pal
Ranch Hand

Joined: Nov 04, 2007
Posts: 74
I am using Quartz scheduler for scheduling purposes in my project. I need to gather statistics like when, for how long, and how many times a job was run. I want to use Spring AOP for the same. For this, I am making Job classes spring-managed beans. Spring creates a Proxy class for each of the Job classes. But now when Quartz tries to execute this spring-managed Job, I am getting InstantiationException for the Proxy class created for the Job by Spring.

org.quartz.SchedulerException: Problem instantiating class '$Proxy6' [See nested exception: java.lang.InstantiationException: $Proxy6]

Can anybody please suggest a solution for this problem?


Hakuna Matata!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Making Quartz scheduler Spring-managed
 
Similar Threads
Call action class from timertask's run method
org.springframework.batch.core.repository.JobExecutionAlreadyRunningException
How to get a quartz job to use a hibernate transaction session
How to use same quartz tables for multiple jobs
Jax-ws Oneway WebService not behaving as expected