Use the sample business grid applications as a starting point for implementing your own
applications. The sample applications are in the <install_root>/installableApps
directory.
For DB2 on z/OS, SPUFI scripts
are provided in the <install_root>/longRunning directory. For
DB2 Version 7, the long-running scheduler SPUFI is SPFLRSV7. The long-running execution environment SPUFI is SPFLREV7.
For DB2 Version 8, the long-running scheduler SPUFI is SPFLRS
and the long-running execution environment SPUFI
is SPFLREE.
For both DB2 Version 7 and
Version 8, the Postings sample SPUFI is SPFPOST. There are two versions
of the long-running scheduler and long-running execution environment SPUFIs for DB2 on
z/OS because of restrictions on the size of the character data columns,
which comprise the primary key in DB2 Version 7 for z/OS.
The provided samples are:
SimpleCI.ear
A simple compute-intensive
application that performs compute-intensive mathematical calculations
for a specified amount of time.
- When installing the SimpleCI.ear file, ensure that the Deploy enterprise beans in Step 1: Select installation options box is cleared.
- Test the SimpleCI application with the xJCL in <install_root>/longRunning/SimpleCIxJCL.xml.
PostingsSample.ear
A transactional
batch application that mimics account transaction processing.
- Test the PostingsSample application with the xJCL in <install_root>/longRunning/postingSampleXJCL.xml.
- Before submitting the job, edit the file and supply valid file
names on the dynamic cluster where you deployed the PostingsSample.ear application. The PostingsSample.ear file contains
entity beans.
- Create the database tables and define a datasource for the database
before installing the PostingsSample application. The Data Definition
Language (DDL) files that you use to create the corresponding database
tables and tablespaces are in <install_root>/longRunning/CreatePostingsTablesXxx.ddl and <install_root>/longRunning/CreatePostingsTablespaceXxx.ddl, where Xxx denotes the type of
database manager for which the DDL is intended. WebSphere Extended
Deployment supports Cloudscape, Derby, DB2, Oracle, and Informix.
RunningPostingv2Sample.ear
To run:
- Open the postingsv2samplexJCL.xml and update the value for postingsDataStream
in the substitution-props section to a valid path.
- Save and exit.
- Open the administrative console and submit
the previous xJCL.
Running XDCGIVT.ear
This sample
includes three xJCLs that do the following:
- Copies one text file to another and compares the two XDCGIVTtxt2txtxJCL.xml
- Copies one byte file to another and then compares the two XDCGIVTbyte2bytexJCL.xml
- Copies a text file to a database and then copies the entries in
the database to another file and then compares the two.
To run:
- Open the xJCL you want to submit and update the values for inputDatastream
and outputDataStream in the substitution-props section to valid paths.
- Save and exit.
- Open the administrative console and submit
the previous xJCL.
MandelbrotCI.ear
A compute-intensive
application with a Web interface that computes and renders Mandelbrot
fractal images. The MandelbrotCI application contains two modules:
a Web module that provides the user interface and an Enterprise JavaBean
(EJB) module that contains the compute-intensive logic.
- When installing the MandelbrotCI.ear file, ensure
that the Deploy enterprise beans in Step 1: Select
installation options box is cleared.
- Deploy the Web module to the same dynamic cluster as the job
scheduler.
- Deploy the EJB module to a execution environment dynamic cluster.
- After installation, the URL for the GUI is http://<hostname>:<port>/mandelbrotci/gui,
where hostname and port specify
the host name and port number of the Web module.
The Web interface provides the controls as shown in the following
table:
Table 1. Mandelbrot Web interface controls
Control |
Description |
Zoom in, zoom out |
Zooms the current view in or out. |
Pan up, left, right, down |
Moves the current view of the image as specified.
|
Minimum, maximum real, imaginary value |
Precisely controls what portion of the fractal
shows. The zoom and pan controls are shortcuts for modifying these
values. |
Pixels horizontally, vertically |
Specifies how large the resulting image is in
pixels. |
Tiles horizontally, vertically |
Specifies how many tiles the image is split
into for computation. One long-running job is submitted for each tile. |
Maximum iterations |
A parameter of the Mandelbrot algorithm that
controls the contrast of the computed image. You do not typically
need to adjust this value. |
Repeat count |
Specifies how often the computations repeat.
By default, an iteration of the calculations for a tile takes approximately
0.1 seconds on an average machine. Increase this number to lengthen
each job. |
Reset values |
Resets the numeric values in the fields. |
Restart computation |
Starts or restarts the specified computation.
If any jobs are outstanding from the previous computation, then they
are canceled. |
Cancel computation |
Cancels any outstanding jobs. |
User ID, password |
Supplies login credentials. The Mandelbrot application
does not have any security constraints. However, the credentials are
used to establish user identity for submitting and canceling jobs. |
SimpleUtility.jar
Two simple native
Java applications that calculate the factorial of a number and count
for 60 seconds are contained in the SimpleUtility.jar file, which
is located at <install_root>/longRunning.
- Test the Factorial application with the xJCL in <install_root>/longRunning/FactorialXJCL.xml.
Before submitting the job, edit the file and supply a number by updating
<arg line="60"/ >.
- Test the SimpleCounter application with the xJCL in <install_root>/longRunning/SimpleCounterXJCL.xml.