Example: Transactional batch properties file
The example 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 Java(TM) Platform, Enterprise Edition (Java EE)application. application-name=PostingsSampleEar # A time-based checkpoint algorithm is provided. checkpoint-algorithm=com.ibm.wsspi.batch.checkpointalgorithms.timebased # Use the interval property of the algorithm, specified in seconds, to decide # 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 is 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. Change the value of the 'FILENAME' property 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
Related:
WSGrid command-line utility Batch job properties WSGrid properties file examples