• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSR 352 - Batch JSR

 
Bartender
Posts: 1104
10
Netbeans IDE Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Some information about JSR 352 - Batch Applications for the Java Platform:
Batch processing is a very common need in programming. In Java, for simple processing, usually a standalone program is developed. For more complex needs, custom solutions are developed. A typical solution is to have an application submit jobs/tasks and then a separate process called JobHandler/JobManager (which would keep waiting for jobs to be submitted) would execute these jobs via separate threads for each of the jobs. The JobManager also has to monitor the job execution process and report the status of the job. There are much more complex scenarios in the real-world where a chained notion of jobs is needed i.e one Job dependant on the other job to run and so on.

Everytime, a custom solution is developed to address the needs. There is no standardization of such solutions in the Java world even though this is a very common need.

JSR 352 has been created to precisely address this problem. This JSR is also known by the name of Batch JSR. One of the important goals of this JSR is to target this JSR for both Standard and Enterprise platforms.

The concepts involved are Job Manager, Job, Steps, Chunks along with transaction support and exception handling. A Job can have many Steps. We can chain the Steps - either as one after other or as decision steps. These are defined in a xml file known as the Job XML. Annotations are used throughout to mark and write code.

This JSR passed the Review Ballot in Nov 2011. The package name to be used is "javax.batch".

Home page of the JSR: http://www.jcp.org/en/jsr/detail?id=352
Project page of the JSR: http://java.net/projects/jbatch/
reply
    Bookmark Topic Watch Topic
  • New Topic