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

Esempio xJCL per un processo batch

Di seguito è riportato un esempio xJCL per un processo batch:

<?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
Elementi xJCL

Argomento Concetti    

Termini di utilizzo | Commenti Ultimo aggiornamento: Mar 20, 2006 1:07:14 PM 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. Tutti i diritti riservati.
Questo centro informazioni utilizza la tecnologia Eclipse. (http://www.eclipse.org)