About Duffbert...

Duffbert's Random Musings is a blog where I talk about whatever happens to be running through my head at any given moment... I'm Thomas Duff, and you can find out more about me here...

Email Me!

Search This Site!

Custom Search

I'm published!

Co-author of the book IBM Lotus Sametime 8 Essentials: A User's Guide
SametimeBookCoverImage.jpg

Purchase on Amazon

Co-author of the book IBM Sametime 8.5.2 Administration Guide
SametimeAdminBookCoverImage.jpg

Purchase on Amazon

MiscLinks

Visitor Count...



View My Stats

« Book Review - Can Two Rights Make a Wrong? by Sara J. Moulton Reger | Main| Time for the *fun* vacation... »

Book Review - Quartz Job Scheduling Framework by Chuck Cavaness

Category Book Reviews
One of the things I appreciate about working with Notes/Domino is the ability to schedule agents to run on certain events or on a schedule.  But I always wondered how I might accomplish the same thing if I had stand-alone Java applications?  This appears to be the answer...  Quartz Job Scheduling Framework - Building Open Source Enterprise Applications by Chuck Cavaness.

Contents: Scheduling In The Enterprise; Getting Started With Quartz; Hello, Quartz; Scheduling Jobs; Cron Triggers And More; JobStores and Persistence; Implementing Quartz Listeners; Using Quartz Plug-Ins; Using Quartz Remotely; Using Quartz With J2EE; Clustering Quartz; Quartz Cookbook; Quartz And Web Applications; Using Quartz With Workflow; Quartz Configuration Reference; Index

Quartz is an open source Java-based scheduling package and API that allows you to build programs that control other programs and events.  For instance, let's say you have a Java program that reads a directory, parses any XML files in that directory into some format, and then writes the results to another directory.  You could have someone do that manually every couple of hours, but that's a waste of time.  Quartz allows you to write the program such that it will run automatically on schedule, freeing you from manual intervention.  It uses both event triggers and cron-style scheduling commands that allow you to get very creative in your requirements.  The best thing is, it's an open source project that has wide support in the industry and an established foundation of experience to draw upon.  Cavaness does an excellent job in leading the reader through the concepts of job scheduling, through basic Quartz jobs, and finally into a full understanding of what Quartz can accomplish.  

This is the type of gem that makes book reviewing important to me.  I had no concept of this particular type of program, and now I have an entire new set of ideas to draw from.  While I don't have a particular need for this immediately, I'll be keeping this book around because I can see it filling a definite need without too much effort.  A very nice read...

Comments

Gravatar Image1 - Thomas, I'm glad to hear that you liked the book on Quartz. I stumbled upon Quartz about a year and a half ago when I was looking for a Java-based scheduling framework. It truely is a great framework and all of the credit goes to James House for creating it and the committers on the project for helping James maintain it. I wrote the book because I thought more Java developers should be aware of the project and I think it's starting to happen. We use it to schedule all of our EDI jobs where we integrate with Insurance Companies.

Thanks for the kind words,
chuck cavaness

Gravatar Image2 - hello Chuck:
I am the reader of your book, and it seems there is a issue when register multiple triggers to one job sample in your book, it throw org.quartz.ObjectAlreadyExistsException.

if i change the method to register the trigger2 by:
trigger2.setJobName("jobname");
trigger2.setJobGroup("jobgroup");
scheduler.schedule(trigger2);
it works.
what is the problems?
thanks

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

Want to support this blog or just say thanks?

When you shop Amazon, start your shopping experience here.

When you do that, all your purchases during that session earn me an affiliate commission via the Amazon Affiliate program. You don't have to buy the book I linked you to (although I wouldn't complain!). Simply use that as your starting point.

Thanks!

Thomas "Duffbert" Duff

Ads of Relevance...