Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

JSR 352 - Batch JSR

Posts: 1104
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:
Project page of the JSR:
It's never done THAT before. Explain it to me tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic