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