Rochmat has posted 2 posts at DZone. View Full User Profile

Quartz Library Migration After Many Years

12.01.2011
| 4000 views |
  • submit to reddit

Weeks ago, the company I'm working at announced that the management decided to upgrade our Spring library we are using from Spring 1.x to Spring 3.0.6. And the task for me was upgrading the Quartz framework from version 1.3.x to 2.1.

The project's actually only been using a narrow set  features available in Quartz so I guessed there would be no big refactoring needed. But unfortunately I was shocked with how big the changes were in Quartz. Looking at the Quartz source code made me realize that our Quartz was wayyyy older than the current 2.1 version. It's been more than 6 years and I was still at university at that time.

Some classes now have become interfaces and there are new ways to instantiate some classes. JobDetail and Trigger are now an interface instead of classes. I used to create JobDetail directly using new and now there is JobBuilder class to create JobDetail. Trigger is now created using TriggerBuilder instead of instantiating using new.

It's also interesting that name and group information for Job and Trigger are wrapped inside JobKey and TriggerKey instead of passing Strings.

 

But anyway, Spring 3 hasn't supported Quartz 2.x yet  so we decided to upgrade from Quartz 1.3.x to 1.8.5.

Moral of the story.  Don't wait years to upgrade important libraries.

Published at DZone with permission of its author, Rochmat Santoso.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Tags:

Comments

Tomasz Nurkiewicz replied on Thu, 2011/12/01 - 3:05pm

Just so you know, Spring 3.1 (currently in RC2) already supports Quartz 2.x. Works like a charm.

Rochmat Santoso replied on Thu, 2011/12/01 - 7:40pm in response to: Tomasz Nurkiewicz

Yes, thanks Tomasz for your information. We have decided to use the latest release Spring 3.0.6 instead but I do hope it won't take another 6 years here to upgrade our libraries again later.

Ash Mughal replied on Wed, 2012/01/25 - 7:14pm

Thanks for sharing your expertise and experience in transferring Quartz. Can anybody also share his or her experience in transforming a JSF 1.2 to JSF 2.0 application.

I am experiencing lot of issues while I am tryying to upgrade my J2EE application.

new java

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.