TaskHandler interface

A task handler is a user-defined stateless session bean that is called by tasks created using a BeanTaskInfo object. A task handler bean uses the following home and remote interfaces, which are defined in the deployment descriptor using the or WebSphere Studio Application Developer:

com.ibm.websphere.scheduler.TaskHandlerHome
com.ibm.websphere.scheduler.TaskHandler

The bean itself needs to implement the process() method defined in the remote interface. For details, see the Interface TaskHandler in the Javadoc.

If a task is created using a BeanTaskInfo object, the process() method on the TaskHandler session bean is called whenever the task runs. Because the TaskStatus object for the task is passed as a parameter, the handler can make use of the saved UserContext field, as well as determine information about the task, such as when it will fire next, the number of repeats remaining, and so on.




Searchable topic ID:   rsch_taskhandler
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/scheduler/ref/rsch_taskhandler.html

Library | Support | Terms of Use | Feedback