Hi Rajith,

Cron style in trigger would be appropriate for your case and you can still
try time interval option as well. Since you are going to have a number of
publisher classes, you shall have different scheduled tasks respectively.
[1] would give you an idea about this and please refer [2] for more details.

[1]
<task xmlns="http://ws.apache.org/ns/synapse"; name="publisherTask1"
class="org.wso2.example.PublisherClass1">
    <trigger interval="1500"/>
</task>

<task xmlns="http://ws.apache.org/ns/synapse"; name="publisherTask2"
class="org.wso2.example.PublisherClass2">
    <trigger cron="0 0 12 * * ?"/>
</task>

[2]
http://itsmeisuru.wordpress.com/2013/11/12/wso2-esb-scheduled-task-example/

Thanks,


On Wed, Apr 2, 2014 at 3:34 PM, Rajith Vitharana <[email protected]> wrote:

> Hi all,
>
> I have implemented a publisher class which will pull data from some Rest
> API and publish those data to a BAM instance. There are more than one Rest
> API and I hope to develop separate publisher classes for each Rest API
> since I need to schedule them in different time intervals. For the time
> being I have developed this as a full standalone applications with using
> "quartz" to schedule the tasks. But I need to move this in to a server
> instead of being standalone application. I found [1] in google which
> describes how to schedule tasks in WSO2 ESB. would this be the correct
> approach for this? appreciate any guidance.
>
> [1] -
> https://docs.wso2.org/display/ESB470/Adding+and+Scheduling+Tasks#AddingandSchedulingTasks-cronstyle
>
> Thanks,
>
> --
> Rajith Vitharana
>
> Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94715883223
> Blog : http://lankavitharana.blogspot.com/
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 <http://asia14.wso2con.com/>

<http://asia14.wso2con.com/>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to