Why and when to perform this task
The scheduler’s default behavior is designed to run business logic that runs for a short period of time. Version 6.0.2 provides two new API methods on the com.ibm.websphere.scheduler.TaskInfo interface that help avoid some of the problems that can occur when running tasks for a long period of time.
The TaskInfo.setQOS method allows tasks to run with both a transactional and non-transactional quality of service. When running tasks that will run for long periods of time, the TaskInfo.QOS_ATLEASTONCE quality of service can be used to run the task without a global transaction. This prevents various timeout issues that can occur when resources are held by a long-running transaction. See Transactions and schedulers (ADD LINK) for details on the TaskInfo.setQOS method and how it can be used.
The TaskInfo.setExpectedDuration method allows the scheduler to adjust timeout values as appropriate for a given task for all qualities of service. The application server will attempt to adjust various run-time parameters to accommodate the task’s estimated run time.
Steps for this task
Related concepts
Transactions and schedulers
Related reference
Reference: Generated API documentation