Rob Gordon is a seasoned Java developer and a big fan of open source. Oddjob is his own open source project to make job scheduling and task automation in Java much much easier. Rob is based in London. Rob is a DZone MVB and is not an employee of DZone and has posted 17 posts at DZone. You can read more from them at their website. View Full User Profile

Oddjob 1.1 Released

01.27.2012
| 1249 views |
  • submit to reddit
Location: 
http://rgordon.co.uk/blog/2012/01/30/oddjob-1-1-released/

Version 1.1. of Oddjob, the Open Source Task Automation Framework, is now available.

This release includes:

A new JSF AJAX Web Front End which replaces the old Struts version

Oddjob's Browser View

Support for providing a job as a Callable as well as a Runnable.

Here's a Callable:

import java.util.concurrent.Callable;
 
public class HelloBean implements Callable<Integer> {
 
    private String time;
 
    @Override
    public Integer call() throws Exception {
 
        System.out.println("Hello at " + time + ".");
 
        return 0;
    }
 
    public void setTime(String time) {
        this.time = time;
    }
 
    @Override
    public String toString() {
        return "My Callable";
    }
}

And here it is running in Oddjob:

 

The ability to Force a Failed Job to Complete.

If a job fails and you work around it manually you can now force that job to comlete so dependent jobs can be triggered.

For more information please see  http://rgordon.co.uk/oddjob

0
Published at DZone with permission of Rob Gordon, author and DZone MVB.

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