WebSphere Extended Deployment, Version 6.0.x
             Operating Systems: AIX, HP-UX, Linux, Solaris, Windows, z/OS


Sample business grid applications

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 z/OS operating system] 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 z/OS operating system] For DB2 Version 8, the long-running scheduler SPUFI is SPFLRS and the long-running execution environment SPUFI is SPFLREE.

[For z/OS operating system] 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.
  1. When installing the SimpleCI.ear file, ensure that the Deploy enterprise beans in Step 1: Select installation options box is cleared.
  2. Test the SimpleCI application with the xJCL in <install_root>/longRunning/SimpleCIxJCL.xml.

PostingsSample.ear

A transactional batch application that mimics account transaction processing.
  1. Test the PostingsSample application with the xJCL in <install_root>/longRunning/postingSampleXJCL.xml.
  2. 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.
  3. 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.

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.
  1. When installing the MandelbrotCI.ear file, ensure that the Deploy enterprise beans in Step 1: Select installation options box is cleared.
  2. Deploy the Web module to the same dynamic cluster as the job scheduler.
  3. Deploy the EJB module to a execution environment dynamic cluster.
  4. 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.
  1. 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"/ >.
  2. Test the SimpleCounter application with the xJCL in <install_root>/longRunning/SimpleCounterXJCL.xml.



Related concepts
The compute-intensive programming model
Managing long-running jobs
Related tasks
Creating a database for the execution environment
Concept topic    

Terms of Use | Feedback

Last updated: Nov 30, 2007 4:00:35 PM EST
http://publib.boulder.ibm.com/infocenter/wxdinfo/v6r0/index.jsp?topic=/com.ibm.websphere.xd.doc/info/scheduler/cbgsample.html