This sample demonstrates a job that performs overdraft
processing on a list of transactions. You can run the sample as a
single job, or in parallel mode using the Parallel Job Manager.
Prerequisites for use
WebSphere® Application Server Version 8.5
Important: These samples were tested with WebSphere Application Server Version 8.5.
Samples download
To use the samples, download
Java Batch Overdraft sample files from a product download site:
- Choose one of the following methods to download the sample_overdraft.zip file
to a directory on your workstation: FTP or HTTP. You might create the /samples/overdraft directory
path on your workstation and download Java Batch Overdraft sample
files to that directory path.
- From the displayed dialog, specify the target directory to which
to save the compressed file and click OK.
The
sample_overdraft.zip file
contains sample files in the following directory structure:
/images
/installableApps
/scripts
/src
/style
build.xml
readme.html
Attention: The readme.html file
contains information for installing and running the sample.
Samples description
- Java Batch Overdraft sample
- You can install, run, and monitor an application that mimics account
transaction processing using the Overdraft sample. The sample is built
using the simple Plain Old Java Object (POJO) model and packaged using
the batch packager, WSBatchPackager. The Overdraft sample is similar
to XDCGIVT in that it is a JDBC interaction mechanism, and provides
an example on making use of the batch data stream framework.
This
sample is based on a theme of processing debits and credits from a
bank account. The first batch step generates random postings data,
such as data that represents credits/debits to mock bank accounts,
and writes it to an output file. The second step demonstrates how
to read the generated data from the file as a Batch Data Stream and
how to perform operations with that data in a Batch Job Step. The
third step demonstrates how to read the data generated by the second
step as a Batch Data Stream and how to perform operations with that
data in a Batch Job Step.
The xJCL examples provided with this
sample demonstrate a single job and a parallel job.