WebSphere Application Server Network Deployment, Version 6.0.x   Operating Systems: AIX, HP-UX, Linux, Solaris, Windows
             [TIP: Focusing the table of contents and search results]

Developing and scheduling tasks

To develop and schedule tasks, use a configured scheduler.

Procedure

  1. Look up a configured scheduler. Each configured scheduler is available from two different programming models:
    • A J2EE server application, such as a servlet or EJB component can use the Scheduler API. Schedulers are accessed by looking them up using a JNDI name or resource reference.
    • Java Management Extensions (JMX) applications, such as wsadmin scripts, can use the Scheduler API using WASScheduler MBeans.
  2. Develop the task.
    The Scheduler API supports different implementations of the TaskInfo interface, each of which can be used to schedule a particular type of work. Refer to one of the following topics for details:
    Note: Creating and manipulating scheduled tasks through the Scheduler interface is only supported from within the EJB container or Web container (Enterprise beans or servlets). Looking up and using a configured scheduler from a J2EE application client container is not supported.
  3. Receive scheduler notifications. A notification sink is set on a task in order to receive the notification events that are generated by a scheduler when it performs an operation on the task.
  4. Use custom calendars. You can assign aUserCalendar session bean to a task that allows schedulers to use custom and predefined date algorithms to determine when a task should run. See the UserCalendar interface for details.
  5. Submit tasks to a scheduler. After a TaskInfo object has been created, it can be submitted to the scheduler for task creation by calling the Scheduler.create() method.
  6. Manage tasks with a scheduler.
  7. Secure tasks with a scheduler.



Sub-topics
Accessing schedulers
Developing a task that calls a session bean
Developing a task that sends a Java Message Service message
Scheduling long-running tasks
Receiving scheduler notifications
Submitting a task to a scheduler
Task management methods using a scheduler
Identifying tasks that are currently running
Stopping tasks that are failing
Scheduler tasks and J2EE context
Securing scheduler tasks
Scheduler configuration or topology
Scheduler interface
Related tasks
Managing schedulers
Related reference
MBean API documentation
Task topic    

Terms of Use | Feedback

Last updated: Mar 8, 2007 8:14:28 PM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/scheduler/tasks/tsch_developtasks.html

© Copyright IBM Corporation 2004, 2006. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)