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

xJCL-Beispiel für einen Stapeljob

Im Folgenden sehen Sie ein xJCL-Beispiel für einen Stapeljob:

<?xml version="1.0" encoding="UTF-8"?>

<job name="SampleEar" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

     <jndi-name>ejb/com/ibm/websphere/samples/PostingsJob</jndi-name>

     <step-scheduling-criteria>
       <scheduling-mode>sequential/</scheduling-mode>
     </step-scheduling-criteria>

     <checkpoint-algorithm name="timebased">
       <classname>com.ibm.wsspi.batch.checkpointalgorithms.timebased</classname>
          <props>
               <prop name="interval" value="15" />
          </props>
     </checkpoint-algorithm>

     <results-algorithms>
       <results-algorithm name="jobsum">
         <classname>com.ibm.wsspi.batch.resultsalgorithms.jobsum</classname>
       </results-algorithm>
     </results-algorithms> 

<job-step name="Step1">

     <jndi-name>ejb/DataCreationBean</jndi-name>
     <checkpoint-algorithm-ref name="timebased" />
     <results-ref name="jobsum"/>

<batch-data-streams>
  <bds>
     <logical-name>myoutput</logical-name>
     <impl-class>com.ibm.websphere.samples.PostingOutputStream</impl-class>
     <props>
       <prop name="FILENAME" value="somefile”/> 
     </props>
  </bds>
</batch-data-streams>	        

  <props>
    <prop name="wsbatch.count" value="5000" />
  </props>

</job-step>

<job-step name="Step2">

     <step-scheduling condition="OR">
       <returncode-expression step="Step1" operator="eq" value="0" />
       <returncode-expression step="Step1" operator="eq" value="1" />
     </step-scheduling>

     <jndi-name>ejb/PostingAccountData</jndi-name>
     <checkpoint-algorithm-ref name="timebased" /	>
     <results-ref name="jobsum"/>

     <batch-data-streams>
       <bds>
         <logical-nam>emyinput</logical-name>
         <impl-class>com.ibm.websphere.samples.PostingStream</impl-class>               
     <props>
         <prop name="FILENAME" value="somefile" />
     </props>
   </bds>
</batch-data-streams>	        

  </job-step>
</job>



Related concepts
xJCL-Elemente

Konzeptartikel    

Nutzungsbedingungen | Feedback Letzte Aktualisierung: Mar 23, 2006 9:54:23 AM EST
http://publib.boulder.ibm.com/infocenter/wxdinfo/v6r0/index.jsp?topic=?topic=/com.ibm.websphere.xd.doc/info/scheduler/cxdbatchjob.html

© Copyright IBM 2005, 2006. Alle Rechte vorbehalten.
Dieses Information Center beruht auf der Eclipse-Technologie. (http://www.eclipse.org)