WebSphere Extended Deployment Compute Grid, Version 6.1.1
             Operating Systems: AIX, HP-UX, Linux, Solaris, Windows, z/OS


Transactional batch properties file

The sample file WSGrid.batch.job illustrates the properties necessary to define the first step of the PostingsSample batch job.

# Specify name by which this job is known job-name=PostingsSample  
  
# Use default job class - uncomment to specify custom class   
# job-class=<enter class name here>  
  
# This is the jndi name of the BatchController system SLSB. 
controller-jndi-name=ejb/com/ibm/websphere/samples/PostingsJob  
  
# Specify name of target j2ee app  
application-name=PostingsSampleEar  
  
# A timebased checkpoint algorithm is provided with XD 6.1 and its interval property 

checkpoint-algorithm=com.ibm.wsspi.batch.checkpointalgorithms.timebased

# (units are seconds) decides how often to commit the global transaction when invoking a batch job step
checkpoint-algorithm.interval=10  

# This is a logical jndi name for the batch step; it has to match the ejb-reference declared 
# in the system SLSB for this batch step  entity bean

batch-bean-jndi-name=ejb/DataCreationBean  
  
# This the output bds used by the DataCreationBean.  
# The logical name expected by the DataCreationBean is 'myoutput' 

bds.myoutput=com.ibm.websphere.samples.PostingOutputStream 

# Specify the implementation class and bds input property named 'FILENAME', expected   
# by this bds class. The value of the 'FILENAME' property should be changed to a path  
# in the filesystem to write the postings output file.

bds.myoutput.FILENAME=/root/bds/sample/myostingsfile	  
# generic properties can be passed to the Batch Step. The DataCreationBean step uses   
# this property to control how many postings to create in the file associated with   
# PostingsOutputStream 
prop.name.wsbatch.count=5

The WSGrid invocation to submit the job described by the preceding properties file is:

WSGrid WGrid.cntl WSGrid.batch.job 



Related concepts
The WSGrid command-line utility
Related information
Compute Grid job properties
WSGrid property file examples
Reference topic    

Terms of Use | Feedback

Last updated: Oct 30, 2009 1:37:06 PM EDT
http://publib.boulder.ibm.com/infocenter/wxdinfo/v6r1m1/index.jsp?topic=/com.ibm.websphere.gridmgr.doc/info/reference/rcg_example_batch.html