The default behavior of the scheduler 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 an extended time.
Why and when to perform this task
The TaskInfo.setQOS method supports tasks with both a transactional and non-transactional quality of service. When running tasks that run for long periods, you can use the TaskInfo.QOS_ATLEASTONCE quality of service to run the task without a global transaction. This process prevents various timeout issues that can occur when resources are held by a long-running transaction. See Transactions and schedulers for details on the TaskInfo.setQOS method and how it can be used.
Using the TaskInfo.setExpectedDuration method, the scheduler can to adjust timeout values, as appropriate, for a given task for all qualities of service. The application server attempts to adjust various run-time parameters to accommodate the estimated run time of the task.
Steps for this task
What to do next
Access schedulers.Related concepts
Transactions and schedulers
Related reference
Reference: Generated API documentation