Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Making Quartz scheduler Spring-managed

 
Pranav Pal
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic