Unknown macro: {next_previous_link3}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

A task in WSO2 ESB allows you to run a piece of code triggered by a timer. WSO2 ESB provides a default task implementation, which you can use to inject a message to the ESB at a scheduled interval. To activate the built-in task, you have to add it to the Tasks list.

For information on working with tasks via the ESB tooling plug-in, see Working with Tasks via the ESB Tooling Plug-In.

For information on working with tasks via the Management Console, see Working with Tasks via the Management Console.

You can also write your own task by creating a custom Java class that implements the org.apache.synapse.startup.Task interface. This interface defines a single method named execute(). For example, you could create a task that will read a text file at a specified location and place orders for stocks that are given in the text file. For more information, see Writing Tasks.

 

  • No labels