...
The main steps while writing a task are as follows:
- Write the Task class
- Customize the task
- Compile and bundle the task
- Add the task to the WSO2 ESB class path
- Configure and schedule the task in ESB Console
Table of Contents |
---|
...
Step 1. Write the Task Class
Anchor | ||||
---|---|---|---|---|
|
...
Assemble the compiled class Task
as a JAR file.
...
Step 4. Add to the WSO2
...
EI Class Path
Anchor | ||||
---|---|---|---|---|
|
After compiling and bundling the Task
class, you need to add it to the WSO2 EI class path. Place the JAR file in the lib
directory of WSO2 EI.
...
Info | ||
---|---|---|
| ||
It is required to restart WSO2 EI for the JAR containing the task implementation to be picked up by the server runtime. An OSGi bundle containing the task implementation will be created automatically and it will be deployed in the server. |
...
Step 5. Configure and Schedule in
...
WSO2 EI Console
Anchor | ||||
---|---|---|---|---|
|
See Adding and Scheduling Tasks.
...