This is a sample application for the Parallel Job Manager,
based on the batch data stream framework. It is built using the simple
Plain Old Java Object (POJO)
model and packaged using the batch packager.
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 Mailer sample files from
a product download site:
- Choose one of the following methods to download the sample_mailer.zip file
to a directory on your workstation: FTP or HTTP. You might create the /samples/mailer directory
path on your workstation and download Java Batch
Mailer 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_mailer.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 Mailer sample
- You can install, run, and monitor an application that uses the
Parallel Job Manager using the Mailer sample. The sample is built
using the simple Plain Old Java Object
(POJO) model and packaged using the batch packager, WSBatchPackager.
The Mailer sample is similar to the XDCGIVT sample, in that it is
a JDBC interaction mechanism and provides an example on using the
batch data stream framework.
This sample demonstrates a promotional
mailing exercise. The recipients of a promotional mailing are identified.
The mailing information (email and postal) for those recipients is
located. Mail is then sent and the promotion date is set in the database.
The
xJCL examples provided with this sample demonstrate various required
(and optional) parameters when creating the xJCL for a parallel job.
This particular sample provides implementations for the parameterizer, synchronization, subjobanalyzer,
and subjobcollector SPI.