Java EE Batch Applications in NetBeans IDE
Join the DZone community and get the full member experience.Join For Free
- Transition - Next
Batch processing is execution of series of "jobs" that is suitable for non-interactive, bulk-oriented and long-running tasks.Typical examples are end-of-month bank statement generation, end-of-day jobs such as interest calculation, and ETL (extract-transform-load) in a data warehouse.
JSR - 352
JSR 352 defines a Job Specification Language (JSL) to define batch jobs, a set of interfaces that describes the artifacts that comprise the batch programming model to implement batch business logic . Using jBatch Suite developer may design JSL and generate Job file & source code (batch artifatcs ) .
A Job is an instance that encapsulates an entire batch process.A job is typically put together using a Job Specification Language and consists of multiple steps. The Job Specification Language for JSR 352 is implemented with XML and is referred as "Job XML".
Test your first Job file
The batch job is not automatically started when the application is deployed. A batch job must be initiated explicitly, say, from a servlet or from an Enterprise JavaBeans (EJB) timer or an EJB business method.
JobOperator provides an interface to manage all aspects of job processing, including operational commands, such as start, restart, and stop, as well as job repository commands, such as retrieval of job and step executions.
BatchRuntime.getJobOperator().start("myJob", new Properties());
Published at DZone with permission of Gaurav Gupta. See the original article here.
Opinions expressed by DZone contributors are their own.