Page History
...
3. In the "Manage" menu, click on "Source View" under "Service Bus."
4. Add a necessary piece of code to "Service Bus Configuration." In the source view, add the task configuration based on your requirement.
Examples
Anchor | ||||
---|---|---|---|---|
|
To run every 5 seconds continuously:anchor
Code Block |
---|
<task name="CheckPrice" class="org.wso2.esb.tutorial.tasks.PlaceStockOrderTask"> <trigger interval="50005"/> </task> |
To run every 5 seconds for 10 times:
Anchor | ||||
---|---|---|---|---|
|
To run every 5 seconds for 10 times:
Code Block |
---|
<task name="CheckPrice" class="org.wso2.esb.tutorial.tasks.PlaceStockOrderTask"> <trigger interval="50005" count="10"/> </task> |
Anchor | ||||
---|---|---|---|---|
|
You can also give cron-style values. To run daily at 1:30 AM:anchor
Code Block |
---|
<task name="CheckPrice" class="org.wso2.esb.tutorial.tasks.PlaceStockOrderTask"> <trigger cron="30 1 * * * *"/> </task> |
Anchor | ||||
---|---|---|---|---|
|
To run only once after ESB starts: Anchor
Code Block |
---|
<task name="CheckPrice" class="org.wso2.esb.tutorial.tasks.PlaceStockOrderTask"> <trigger once="true"/> </task> |
...
Overview
Content Tools
Activity