You can install, run, and monitor a simple application
that performs compute-intensive calculations for a specified amount
of time using the simpleCI sample.
Before you begin
- Augment existing WebSphere® Application
Server profiles to support the feature pack or create profiles that
include support for the feature pack.
- Start the appropriate application servers and any supporting management
processes.
- Configure the location of the job scheduler.
The following steps
assume that you are setting up a stand-alone application server test
environment to explore the capabilities of the feature pack.
If
you are setting up a clustered environment, you must perform additional
steps. You must create a network database to support the job scheduler.
You must configure related job scheduler database connectivity settings.
Read the topic about configuring the job scheduler.
- On the administrative console, click System administration
> Job scheduler.
- Set Scheduler hosted by to the identity of the appropriate
application server; for example:
WebSphere:cell=ndcell,node=node1,server=server1
- Save the changes.
About this task
Use the following general procedure to install and run the
simpleCI sample. Read the topics about the job scheduler, the job
management console, and developing applications for detailed information.
Procedure
- Install the simpleCI sample.
- In the administrative console, click Applications
> New application > New Enterprise Application.
- Specify the full path to the sample.
<app_server_root>/feature_packs/BATCH/installableApps/simpleCI.ear
<app_server_root>\feature_packs\BATCH\installableApps\simpleCI.ear
- In the wizard, select Fast Path - Prompt only when
additional information is required, accept default settings, and
continue through the steps. Clicking Finish when you are done.
- If you plan to install additional sample applications,
do so now.
- Restart the application server or start the application.
If this is the first time you are installing an application,
restart the server. Otherwise, you can start the application under
the Applications > Application Types > WebSphere enterprise applications panel.
- Submit a job to the simpleCI sample.
- Edit the SimpleCIxJCL.xml xJCL
file.
You use the xJCL file to submit a job to the simpleCI
sample.
The file is located in the following directory:
<app_server_root>/feature_packs/BATCH/longRunning
<app_server_root>\feature_packs\BATCH\longRunning
- Start the job management console.
In a
web browser, type the following web address:
http://<job
scheduler server host>:<port>/jmc
<job
scheduler server host> is the host address and <port> is
the WC_defaulthost port of the application server on which the running
job scheduler is installed.
To view on the administrative console
the port numbers assigned to a given application server, click Servers
> Server Types > WebSphere application
servers > server_name > Communications > Ports.
- Submit the SimpleCIxJCL.xml file.
On the job management console, click Job Management >
Submit a job, and specify the path to the SimpleCIxJCL.xml file.
- Monitor the submitted job.
On the job management
console, click Job Management > View jobs, and view jobs based
on characteristics such as the job ID and the job submitter.
You
can determine whether the job completed successfully by going to the
second page of the job viewer and scrolling to the bottom. If the
job did complete successfully, you see a Job completed successfully message.