JEUS JBatch Guide 

JEUS 8

Restricted Rights Legend

All TmaxSoft Software (JEUS®) and documents are protected by copyright laws and international convention. TmaxSoft software and documents are made available under the terms of the TmaxSoft License Agreement and this document may only be distributed or copied in accordance with the terms of this agreement. No part of this document may be transmitted, copied, deployed, or reproduced in any form or by any means, electronic, mechanical, or optical, without the prior written consent of TmaxSoft Co., Ltd. Nothing in this software document and agreement constitutes a transfer of intellectual property rights regardless of whether or not such rights are registered) or any rights to TmaxSoft trademarks, logos, or any other brand features.

This document is for information purposes only. The company assumes no direct or indirect responsibilities for the contents of this document, and does not guarantee that the information contained in this document satisfies certain legal or commercial conditions. The information contained in this document is subject to change without prior notice due to product upgrades or updates. The company assumes no liability for any errors in this document.

Trademarks

JEUS® is registered trademark of TmaxSoft Co., Ltd.

Java and Solaris are registered trademarks of Oracle Corporation and its subsidiaries and affiliates.

Microsoft, Windows, and Windows NT are registered trademarks or trademarks of Microsoft Corporation.

HP-UX is a registered trademark of Hewlett Packard Enterprise Company.

AIX is a registered trademark of International Business Machines Corporation.

UNIX is a registered trademark of X/Open Company, Ltd.

Linux is a registered trademark of Linus Torvalds.

Other products and company names are trademarks or registered trademarks of their respective owners.

The names of companies, systems, and products mentioned in this manual may not necessarily be indicated with a trademark symbol (TM, ®).

Open Source Software Notice

Some modules or files of this product are subject to the terms of the following licenses. : APACHE2.0, CDDL1.0, EDL1.0, OPEN SYMPHONY SOFTWARE1.1, TRILEAD-SSH2, Bouncy Castle, BSD, MIT, SIL OPEN FONT1.1

Detailed Information related to the license can be found in the following directory : ${INSTALL_PATH}/lib/licenses

Document Information

Title: JEUS JBatch Guide 

Publication Date: 2018-01-31

Software Version: JEUS 8

Edition: v2.1.1


Table of Contents

About This Document
1. Introduction
1.1. Basic Concepts of JBatch
1.2. JBatch Components
1.2.1. JobOperator
1.2.2. Job
1.2.3. Step
1.2.4. ItemReader
1.2.5. ItemWriter
1.2.6. ItemProcessor
1.2.7. Checkpoints
2. Configuring a Batch Thread Pool
2.1. Overview
2.2. Configuring Batch Thread Pools
2.2.1. Configuring Thread Pools in Component DD
2.2.2. Configuring Thread Pools in Application DD
2.3. Thread Pool Logging
3. Example
3.1. Overview
3.2. Configuring Data Source
3.3. Configuring jeus-web-dd.xml
3.4. Configuring a Job
3.5. JBatchServlet
3.6. ItemReader
3.7. ItemWriter
3.8. ItemProcessor

List of Figures

[Figure 1.1] Organization of the Core JBatch Components
[Figure 1.2] Relationship among Job, JobInstance, JobParameters, and JobExecution
[Figure 1.3] Relationship between a Job and a Step in JBatch
[Figure 1.4] Reader-Processor-Writer Modules of a Step in JBatch
[Figure 3.1] WAR File Structure of a Java Batch Application

List of Examples

[Example 2.1] Configuring Thread Pools in Component DD: <<jeus-web-dd.xml>>
[Example 2.2] Configuring Thread Pools in Component DD: <<jeus-ejb-dd.xml>>
[Example 2.3] Configuring Thread Pools in Application DD: <<jeus-application-dd.xml>>
[Example 3.1] Configuring a DataSource: <<domain.xml>>
[Example 3.2] Configuring a Job: <<simple_file_batch.xml>>
[Example 3.3] JBatchServlet Example
[Example 3.4] FileItemReader Example
[Example 3.5] ItemWriter Example
[Example 3.6] ItemProcessor Example
[Example 3.7] Person Object