Ugur Ugur - 4 months ago 8
Java Question

Quartz JobDetail missing method

I have an application that depends Quartz 1.6.4 version. I upgraded the Quartz to 2.1.6, then comes with compile error:


JobDetail class changed to the interface in new release and does not support getGroup() method any more.


How can I solve this problem?

Answer
JobDetail jobDetail;
String answer = jobDetail.getKey().getGroup();

http://quartz-scheduler.org/api/2.0.0/org/quartz/JobDetail.html#getKey()

Comments