OracleAS Job Scheduler Tag Library Reference

Date: 02/25/2004

Table of Contents

  1. Overview
  2. Configuration
  3. Tag Summary
  4. Tag Reference
    1. scheduler
    2. jobIterator
    3. jobIsActive
    4. jobIsPaused
    5. jobIsCompleted
    6. removeAuditRecords
    7. auditRecordIterator
      1. executionSucceeded
      2. executionFailed
      3. executionIncomplete
      4. executionCancelled
      5. executionBlackout
      6. executionThresholdExceeded
    8. addJob
      1. className
      2. description
      3. schedule
        1. duration
          1. date
          2. time
          3. years
          4. months
          5. weeks
          6. days
          7. hours
          8. minutes
          9. seconds
          10. milliseconds
        2. interval
          1. end
        3. threshold
      4. trigger
      5. retry
      6. logLevel
    9. removeJob
    10. pauseJob
    11. resumeJob
    12. cancelJob
    13. addBlackoutWindow
    14. removeBlackoutWindow


1. Overview

This tag library is used to interact with the OracleAS Job Scheduler.

With this tag library jobs can be added, removed, paused, resumed and queried. Likewise blackout windows can be added, removed and queried. In addition a number of helper tags are provided for conditional operations on jobs and audit records. For example, emitting content based on the status of a job execution.


2. Configuration

Follow these steps to configure an web application with this tag library:

    <taglib>
      <taglib-uri>scheduler-taglib</taglib-uri>
      <taglib-location>/WEB-INF/scheduler.tld</taglib-location>
    </taglib>

To use the tags from this library in a JSP pages, add the following directive at the top of each page:

    <%@ taglib uri="scheduler-taglib" prefix="s" %>

Where, following the example, "s" is the tag name prefix for tags from this library although any prefix may be specified.


3. Tag Summary

This section provides a summary of each of the tags provided by this library.

Tag Description
scheduler The top level tag for all scheduler tags.
addJob Add a new job.
removeJob Removes a job.
pauseJob Pauses a job.
resumeJob Resumes a previously paused job.
cancelJob Cancels execution of a job.
jobIterator Provides a context for iterating over existing jobs.
addBlackoutWindow Add a blackout window.
removeBlackoutWindow Remove a previously create blackout window.


4. Tag Reference

4.1 scheduler tag

Provides an implicit EJB context for interacting with the scheduler. Because context is implicit this tag must be the parent of all other tags provided by this library. The following attributes are supported:

Attribute Required Description
id Yes Specifies the bean instance name by which the scheduler instance may be accessed.
name Yes The JNDI name of the scheduler EJB responsible for processing all operations in the body of this tag.
scope No The optional scope of the implicit EJB context, and may be one of page, request, session, or application. The default is page.

Example usage:

    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler" scope="application">
      .
      .
      .
    </s:scheduler>


4.2 jobIterator tag

Provides an iterator to jobs submitted to the scheduler. Because an EJB context is required to communicate with the scheduler EJB this tag must be enclosed in a scheduler tag. The following attributes are supported:

Attribute Required Description
id Yes Specifies the bean instance name by which the associated job is accessed.
scope No The optional scope of the bean instance, and may be one of page, request, session, or application. The default is page.

Example usage:

    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:jobsIterator id="job">
        .
        .
        .
      </s:jobsIterator>
    </s:scheduler>


This tag supports the following sub-tags:

Tag Description
jobIsActive If the job's state is active evaluate the tag's body.
jobIsPaused If the job's state is paused evaluate the tag's body.
JobIsCompleted If the job's state is complete evaluate the tag's body.
removeAuditRecords Remove all audit records associated with the job.
auditRecordIterator Iterator context for processing one or more audit records associated with the job.
removeJob Removes the job.
pauseJob Pause the job.
resumeJob Resume the job.
cancelJob Cancel the job's execution.


4.3 jobIsActive tag

Helper tag for evaluating a job's state resulting in conditional processing of the tag's body. If the associated job's state is active then the contents of the tags body is further evaluated. The job to evaluate may either be specified implicitly (when used in conjunction with the jobIterator tag or explicitly by specifying a oracle.ias.scheduler.Job bean instance. The following attributes are supported:

Attribute Required Description
name No Specifies the bean instance name by which the associated job is accessed.

Example usage:

    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:jobsIterator id="job">
        <jsp:getProperty name="job" property="description"/>
        <s:jobIsActive>is active</s:jobIsActive><BR>
      </s:jobsIterator>
    </s:scheduler>

This example outputs the descriptions of all jobs optionally appending the text 'is active' if the job is active.


4.4 jobIsPaused tag

Helper tag for evaluating a job's state resulting in conditional processing of the tag's body. If the associated job's state is paused then the contents of the tags body is further evaluated. The job to evaluate may either be specified implicitly (when used in conjunction with the jobIterator tag or explicitly by specifying a oracle.ias.scheduler.Job bean instance. The following attributes are supported:

Attribute Required Description
name No Specifies the bean instance name by which the associated job is accessed.


4.5 jobIsCompleted tag

Helper tag for evaluating a job's state resulting in conditional processing of the tag's body. If the associated job's state is complete then the contents of the tags body is further evaluated. The job to evaluate may either be specified implicitly (when used in conjunction with the jobIterator tag or explicitly by specifying a oracle.ias.scheduler.Job bean instance. The following attributes are supported:

Attribute Required Description
name No Specifies the bean instance name by which the associated job is accessed.


4.6 removeAuditRecords tag

Removes all audit records for a job. This tag must be enclosed in a jobIterator tag. The audit records are removed for the job specified by the enclosing tag.

Example usage:

    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:jobsIterator id="job">
        <s:jobIsCompleted><s:removeAuditRecords/>Removed audit records for completed job</s:jobIsCompleted>
      </s:jobsIterator>
    </s:scheduler>

This example removes the audit records of all jobs that are completed. This is accomplished by using the tag in conjunction with the jobIsCompleted tag.


4.7 auditRecordIterator tag

Provides an iterator to audit records for a job. This tag must be enclosed in a jobIterator tag. The audit records are retrieved for the job specified by the enclosing tag.

The following attributes are supported:

Attribute Required Description
id Yes Specifies the bean instance name by which the associated audit record is accessed.
scope No The optional scope of the bean instance, and may be one of page, request, session, or application. The default is page.

This tag supports the following sub-tags:

Tag Description
executionSucceeded If the records's status is succeeded evaluate the tag's body.
executionFailed If the records's status is failed evaluate the tag's body.
executionIncomplete If the records's status is incomplete evaluate the tag's body.
executionCancelled If the records's status is cancelled evaluate the tag's body.
executionBlackout If the records's status is blackout evaluate the tag's body.
executionThresholdExceeded If the records's status is threshold exceeded evaluate the tag's body.

Example usage:

    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:jobsIterator id="job"><jsp:getProperty name="job" property="description"/>: 
        <s:auditRecordIterator id="record"><jsp:expression>record</jsp:expression></s:auditRecord>
      </s:jobsIterator>
      <BR>
    </s:scheduler>

This example outputs all job descriptions followed by a comma delimted list of all the job's audit records.


4.7.1 executionSucceeded tag

Helper tag for evaluating the status of a job's audit record resulting in conditional processing of the tags body. This tag must be enclosed in a auditRecordIterator tag. The record evaluated is specified by the enclosing tag. If the associated record's status is successful then the contents of the tags body is further evaluated.

Example usage:

    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:jobsIterator id="job">
        <s:auditRecordIterator id="record">
          <s:executionSucceeded>
            <jsp:getProperty name="job" property="description"/><BR>
          </s:executionSucceeded>
        </s:auditRecordIterator>
      </s:jobsIterator>
    </s:scheduler>

This example outputs a list of all the job's that have executed successfully.


4.7.2 executionFailed tag

Helper tag for evaluating the status of a job's audit record resulting in conditional processing of the tags body. This tag must be enclosed in a auditRecordIterator tag. The record evaluated is specified by the enclosing tag. If the associated record's status is failed then the contents of the tags body is further evaluated.


4.7.3 executionIncomplete tag

Helper tag for evaluating the status of a job's audit record resulting in conditional processing of the tags body. This tag must be enclosed in a auditRecordIterator tag. The record evaluated is specified by the enclosing tag. If the associated record's status is incomplete then the contents of the tags body is further evaluated.


4.7.4 executionCancelled tag

Helper tag for evaluating the status of a job's audit record resulting in conditional processing of the tags body. This tag must be enclosed in a auditRecordIterator tag. The record evaluated is specified by the enclosing tag. If the associated record's status is cancelled then the contents of the tags body is further evaluated.


4.7.5 executionBlackout tag

Helper tag for evaluating the status of a job's audit record resulting in conditional processing of the tags body. This tag must be enclosed in a auditRecordIterator tag. The record evaluated is specified by the enclosing tag. If the associated record's status is blackout (i.e. execution was attempted while an execution blackout window was in effect) then the contents of the tags body is further evaluated.


4.7.6 executionThresholdExceeded tag

Helper tag for evaluating the status of a job's audit record resulting in conditional processing of the tags body. This tag must be enclosed in a auditRecordIterator tag. The record evaluated is specified by the enclosing tag. If the associated record's status is threshold exceeded (i.e. the actual time of execution exceeded the expected time of execution by the threshold specified for the job) then the contents of the tags body is further evaluated.


4.8 addJob tag

Adds a job to the scheduler. This tag must be enclosed in a scheduler tag.


This tag supports the following sub-tags:

Tag Required Description
className Yes Class name of the job.
description No The job's description.
schedule No The schedule for job. Specifies how often a timeout is sent to the trigger.
trigger No The trigger for the job. Specifies a precondition for execution.
retry No Specifies the retry period for the job.
logLevel No Specifies the log level for the job.


4.8.1 className tag

Specifies the class name when adding a new job. This must be enclosed in a addJob tag. This tag is required.

Example usage:

    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:addJob>
        <s:className>TestJobImpl</s:className>
      </s:addJob>
    </s:scheduler>


4.8.2 description tag

Specifies the job description when adding a new job. This must be enclosed in a addJob tag. This tag is optional.

Example usage:

    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:addJob>
        <s:className>TestJobImpl</s:className>
        <s:description>Example job description</s:description>
      </s:addJob>
    </s:scheduler>


4.8.3 schedule tag

Used to specify a schedule for a job or blackout window. This tag must be enclosed in a either of a addJob or addBlackoutWindow tag.


This tag supports the following sub-tags:

Tag Required Description
duration No Initial expiration duration of the schedule.
interval No Repeat interval of the schedule.
threshold No Execution threshold for the job. Applicable only when used in conjunction with the addJob tag.


4.8.3.1 duration tag

Used to specify the initial expiration duration of the schedule. This tag must be enclosed in a schedule tag. Use of this tag is optional. The body of this tag is used to specify the duration. The duration is specified as an arbitrary number of units and associated value(s) or a specific date and time.


Some example durations are:


This tag supports the following sub-tags:

Tag Required Description
date No Date of initial expiration. This tag may be combined with the time tag.
time No Time of initial expiration. This tag may be combined with the date tag.
years No Expiration in years relative to the time at which the job is submitted. This tag may be combined with any of the other unit tags.
months No Expiration in months relative to the time at which the job is submitted. This tag may be combined with any of the other unit tags.
weeks No Expiration in weeks relative to the time at which the job is submitted in weeks. This tag may be combined with any of the other unit tags.
days No Expiration in days relative to the time at which the job is submitted in days. This tag may be combined with any of the other unit tags.
hours No Expiration in hours relative to the time at which the job is submitted in hours. This tag may be combined with any of the other unit tags.
minutes No Expiration in minutes relative to the time at which the job is submitted in minutes. This tag may be combined with any of the other unit tags.


4.8.3.1.1 date tag

This tag is used to specify an exact date for the initial exipration of a job. This tag must be enclosed in a duration tag. The format of the date expression specified must be compliant with the date parsing routines provided by the java.text.DateFormat. If a time tag does not accompany this tag in the enclosing body of the duration tag the default time of 12:00:00AM will be used.


Example usage:

    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:addJob>
        <s:className>TestJobImpl</s:className>
        <s:schedule>
          <s:duration>
            <s:date>October 27, 2003</s:date>
          </s:duration>
        </s:schedule>
      </s:addJob>
    </s:scheduler>

In this example the duration of the schedule is set to the date October 27, 2003 12:00AM PST.


4.8.3.1.2 time tag

This tag is used to specify an exact time for the initial exipration of a job. This tag must be enclosed in a duration tag. The format of the time expression specified must be compliant with the time parsing routines provided by the java.text.TimeFormat. If a date tag does not accompany this tag in the enclosing body of the duration tag, the date on which the job was submitted will be used.


Example usage:

    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:addJob>
        <s:className>TestJobImpl</s:className>
        <s:schedule>
          <s:duration>
            <s:date>October 27, 2003</s:date>
            <s:time>16:30:00 PST</s:date>
          </s:duration>
        </s:schedule>
      </s:addJob>
    </s:scheduler>

In this example the duration of the schedule is set to the date October 27, 2003 4:30PM PST.


4.8.3.1.3 years unit tag

This tag may be used in conjunction with either of the tags duration or interval. This tag is used to specify the number of years to expiration. This tag may be used in conjunction with any of the tags months, weeks, days, hours, and minutes. The body of the tag must be a positive non-zero integer. If the duration or interval occurs on a leap day the expiration will be rounded to the last day of the month (e.g. February 29 + 1 year = February 28).


Example usage as a duration:

    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:addJob>
        <s:className>TestJobImpl</s:className>
        <s:schedule>
          <s:duration>
            <s:years>1</s:years>
          </s:duration>
        </s:schedule>
      </s:addJob>
    </s:scheduler>

In this example the duration of the schedule is set to one year from the time of submission.


Example usage as interval:

    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:addJob>
        <s:className>TestJobImpl</s:className>
        <s:schedule>
          <s:interval>
            <s:years>1</s:years>
          </s:duration>
        </s:schedule>
      </s:addJob>
    </s:scheduler>

In this example the interval of the schedule is set to repeat every year.


4.8.3.1.4 months unit tag

This tag may be used in conjunction with either of the tags duration or interval. This tag is used to specify the number of months to expiration. This tag may be used in conjunction with any of the tags years, weeks, days, hours, and minutes. The body of the tag must be a positive non-zero integer. Rounding may result when calculating the duration or interval when expiration occurs at the end of the month. In such cases the rounding always occurs to the last day of the month (e.g. January 31 + 1 month = Februrary 28).


Example usage as a duration:

    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:addJob>
        <s:className>TestJobImpl</s:className>
        <s:schedule>
          <s:duration>
            <s:months>1</s:months>
          </s:duration>
        </s:schedule>
      </s:addJob>
    </s:scheduler>

In this example the duration of the schedule is set to one month from the time of submission.


Example usage as interval:

    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:addJob>
        <s:className>TestJobImpl</s:className>
        <s:schedule>
          <s:interval>
            <s:months>3</s:months>
          </s:duration>
        </s:schedule>
      </s:addJob>
    </s:scheduler>

In this example the interval of the schedule is set to repeat every three months.


4.8.3.1.5 weeks unit tag

This tag may be used in conjunction with either of the tags duration or interval. This tag is used to specify the number of weeks until expiration. This tag may be used in conjunction with any of the tags years, months, days, hours, minutes, seconds, and milliseconds. The body of the tag must be a positive non-zero integer.


4.8.3.1.6 days unit tag

This tag may be used in conjunction with either of the tags duration or interval. This tag is used to specify the number of days until expiration. This tag may be used in conjunction with any of the tags years, months, weeks, hours, minutes, seconds, and milliseconds. The body of the tag must be a positive non-zero integer.


4.8.3.1.7 hours unit tag

This tag may be used in conjunction with either of the tags duration or interval. This tag is used to specify the number of hours until expiration. This tag may be used in conjunction with any of the tags years, months, weeks, days, minutes, seconds, and milliseconds. The body of the tag must be a positive non-zero integer.


4.8.3.1.8 minutes unit tag

This tag may be used in conjunction with either of the tags duration or interval. This tag is used to specify the number of minutes until expiration. This tag may be used in conjunction with any of the tags years, months, weeks, days, hours, seconds, and milliseconds. The body of the tag must be a positive non-zero integer.


4.8.3.1.9 seconds unit tag

This tag may be used in conjunction with either of the tags duration or interval. This tag is used to specify the number of minutes until expiration. This tag may be used in conjunction with any of the tags years, months, weeks, days, hours, minutes and milliseconds. The body of the tag must be a positive non-zero integer.


4.8.3.1.8 milliseconds unit tag

This tag may be used in conjunction with either of the tags duration or interval. This tag is used to specify the number of minutes until expiration. This tag may be used in conjunction with any of the tags years, months, weeks, days, hours, minutes, and seconds. The body of the tag must be a positive non-zero integer.


4.8.3.2 interval tag

Used to specify the repeating interval of the schedule. This tag must be enclosed in a schedule tag. Use of this tag is optional. The body of this tag is used to specify the interval. The interval is specified as an arbitrary number of units (months, days, weeks, etc..) and associated values.

Some example intervals are:


This tag supports the following sub-tags:

Tag Required Description
end No Used to optionally specify an end date for the repeating interval.
years No Interval in years. This tag may be combined with any of the other unit tags.
months No Interval in months. This tag may be combined with any of the other unit tags.
weeks No Interval in weeks. This tag may be combined with any of the other unit tags.
days No Interval in days. This tag may be combined with any of the other unit tags.
hours No Interval in hours. This tag may be combined with any of the other unit tags.
minutes No Interval in minutes. This tag may be combined with any of the other unit tags.


4.8.3.2.1 end tag

Used to specify the end date for the repeating interval of the schedule. This tag must be enclosed in a interval tag. Use of this tag is optional. The body of this tag is used to specify the end date. The interval is specified as an arbitrary number of units (months, days, weeks, etc..) and associated values.

Tag Required Description
date No Date on which schedule ends. This tag may be combined with the time tag.
time No Time at which schedule ends. This tag may be combined with the date tag.
years No Expiration in years relative to the time at which the job is submitted. This tag may be combined with any of the other unit tags.
months No Expiration in months relative to the time at which the job is submitted. This tag may be combined with any of the other unit tags.
weeks No Expiration in weeks relative to the time at which the job is submitted in weeks. This tag may be combined with any of the other unit tags.
days No Expiration in days relative to the time at which the job is submitted in days. This tag may be combined with any of the other unit tags.
hours No Expiration in hours relative to the time at which the job is submitted in hours. This tag may be combined with any of the other unit tags.
minutes No Expiration in minutes relative to the time at which the job is submitted in minutes. This tag may be combined with any of the other unit tags.

Example usage:

    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:addJob>
        <s:className>TestJobImpl</s:className>
        <s:schedule>
          <s:interval>
            <s:months>1</s:months>
            <s:end>
              <s:years>1</s:years>
            </s:end>
          </s:duration>
        </s:schedule>
      </s:addJob>
    </s:scheduler>

In this example the job repeats execution every year for one year.


4.8.3.4 threshold tag

Specifies the execution threshold for the job. This tag must be enclosed in a schedule tag. The body of this tag is used to specify the threshold whereby specified as an arbitrary number of units (days, hours, minutes, etc..) and associated value(s). Use of this tag is optional.


Some example thresholds are:


This tag supports the following sub-tags:

Tag Required Description
days No Threshold in days. This tag may be combined with any of the other unit tags.
hours No Threshold in hours. This tag may be combined with any of the other unit tags.
minutes No Threshold in minutes. This tag may be combined with any of the other unit tags.


Example usage:

    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:addJob>
        <s:className>TestJobImpl</s:className>
        <s:schedule>
          <s:threshold>
            <s:hours>1</s:hours>
          </s:threshold>
        </s:schedule>
      </s:addJob>
    </s:scheduler>

In this example the threshold of the schedule is set to one hour. If the job does not execute within one hour execution will be supressed. The execution will be retried if a retry tag is specified.


4.8.4 trigger tag

Specifies the trigger for the job. This tag must enclosed in a addJob tag. The body is used to specify the associated expression for the trigger. This tag is optional. If this tag is not specified a default will be provided for execution based on the associated schedule's expiration.


Example usage:

    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:addJob>
        <s:className>TestJobImpl</s:className>
        <s:trigger>do_it_now</s:trigger>
      </s:addJob>
    </s:scheduler>


4.8.5 retry tag

Specifies the retry period for the job. This tag must enclosed in a addJob tag. The body of this tag is used to specify the retry period and is specified as an arbitrary number of units and associated value(s). Use of this tag is optional.


This tag supports the following sub-tags:

Tag Required Description
months No retry period in months. This tag may be combined with any of the other unit tags.
weeks No retry period in weeks. This tag may be combined with any of the other unit tags.
days No retry period in days. This tag may be combined with any of the other unit tags.
hours No retry period in hours. This tag may be combined with any of the other unit tags.
minutes No retry period in minutes. This tag may be combined with any of the other unit tags.

Example usage:

    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:addJob>
        <s:className>TestJobImpl</s:className>
        <s:retry>
          <s:hours>1</s:hours>
          <s:minutes>30</s:minutes>
        </s:retry>
      </s:addJob>
    </s:scheduler>

In this example if the job execution fails it will be subsequently retried in one hour and thirty minutes.


4.8.6 logLevel tag

Specifies the optional log level for the job. This tag must enclosed in a addJob tag. The body of this tag is used to specify the log level. The following values are supported:

Use of this tag is optional. For a complete description of logging and associated levels refer to the functional specification.


4.9 removeJob tag

Removes the job specified. The job to remove may either be specified implicitly (when used in conjunction with the jobIterator tag or explicitly by specifying a oracle.ias.scheduler.Job bean instance. The following attributes are supported:

Attribute Required Description
name No Specifies the bean instance name by which the associated job is accessed.

Example usage using a bean instance name:

    <%@ taglib uri="scheduler-taglib" prefix="s" %>
    <jsp:useBean id="job" class="oracle.ias.scheduler.Job" scope="session"/>
    <s:scheduler id="scheduler"  name="java:comp/env/ejb/scheduler">
      <s:removeJob name="job"/>
    </s:scheduler>

Example usage in conjunction with a jobIterator tag:

    <%@ taglib uri="scheduler-taglib" prefix="s" %>
    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:jobIterator>
        <s:removeJob/>
      </s:jobIterator>
    </s:scheduler>


4.10 pauseJob tag

Pauses the job specified. The job to pause may either be specified implicitly (when used in conjunction with the jobIterator tag or explicitly by specifying a oracle.ias.scheduler.Job bean instance. The following attributes are supported:

Attribute Required Description
name No Specifies the bean instance name by which the associated job is accessed.

Example usage using a bean instance name:


    <%@ taglib uri="scheduler-taglib" prefix="s" %>
    <jsp:useBean id="job" class="oracle.ias.scheduler.Job" scope="session"/>
    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:pauseJob name="job"/>
    </s:scheduler>

Example usage in conjunction with a jobIterator tag:

    <%@ taglib uri="scheduler-taglib" prefix="s" %>
    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:jobIterator>
        <s:pauseJob/>
      </s:jobIterator>
    </s:scheduler>


4.11 resumeJob tag

Resumes the job specified. The job to resume may either be specified implicitly (when used in conjunction with the jobIterator tag or explicitly by specifying a oracle.ias.scheduler.Job bean instance. The following attributes are supported:

Attribute Required Description
name No Specifies the bean instance name by which the associated job is accessed.

Example usage using a bean instance name:

    <%@ taglib uri="scheduler-taglib" prefix="s" %>
    <jsp:useBean id="job" class="oracle.ias.scheduler.Job" scope="session"/>
    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:resumeJob name="job"/>
    </s:scheduler>

Example usage in conjunction with a jobIteratortag:

    <%@ taglib uri="scheduler-taglib" prefix="s" %>
    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:jobIterator>
        <s:resumeJob/>
      </s:jobIterator>
    </s:scheduler>


4.12 cancelJob tag

Cancels all executions of the job specified. The job to cancel may either be specified implicitly (when used in conjunction with the jobIterator tag or explicitly by specifying a oracle.ias.scheduler.Job bean instance. The following attributes are supported:

Attribute Required Description
name No Specifies the bean instance name by which the associated job is accessed.

Example usage using a bean instance name:

    <%@ taglib uri="scheduler-taglib" prefix="s" %>
    <jsp:useBean id="job" class="oracle.ias.scheduler.Job" scope="session"/>
    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:cancelJob name="job"/>
    </s:scheduler>

Example usage in conjunction with a jobIteratortag:

    <%@ taglib uri="scheduler-taglib" prefix="s" %>
    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:jobIterator>
        <s:cancelJob/>
      </s:jobIterator>
    </s:scheduler>


4.13 addWindow tag

Adds a blackout window to the scheduler. This tag must be enclosed in a scheduler tag.


This tag supports the following sub-tags:

Tag Required Description
description Yes The blackout window's description.
duration Yes Specifies the duration of the blackout window.
schedule No The schedule for the blackout window. Specifies when, how often, and for how long the blackout window is in effect. If not specified the blackout window is effective starting at the time of submission.

Example usage:

    <%@ taglib uri="scheduler-taglib" prefix="s" %>
    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:addBlackoutWindow>
        <s:description>two hour downtime, effective immediately</s:description>
        <s:duration>
          <s:hours>2</s:hours>
        </s:duration>
      </s:addBlackoutWindow>
    </s:scheduler>


4.14 removeBlackoutWindow tag

Removes the blackout window specified. The blackout window to remove is specified in the body of the tag.

Example usage:

    <%@ taglib uri="scheduler-taglib" prefix="s" %>
    <s:scheduler id="scheduler" name="java:comp/env/ejb/scheduler">
      <s:removeBlackoutWindow>two hour downtime, effective immediately</s:removeBlackoutWindow>
    </s:scheduler>