On Wed, Oct 10, 2012 at 2:11 PM, Isuru Udana <[email protected]> wrote:

> Hi All,
>
> When a synapse task is created from the manager node, the task get
> executed on the manager node in addition to worker nodes.
> We have to identify whether it is a manager node at the synapse level and
> prevent the execution.
> Is there a way to identify whether it is a manager node from the synapse
> level?
>
> System.getProperty("workerNode") can be used to identify whether it is a
> worker node.
> But I couldn't find a way to identify the manager node.
>

We set a property call "subDomain" in axis2.xml (I assume those are System
properties). If it's a management node, property's value would be "mgt".


>
> As a workaround for preventing execution of tasks in manager node we can
> use the concept called "pinned servers" in Scheduled Tasks[1].
>
> Related jira for this issue is located at [2].
>
> [1]
> http://techfeast-hiranya.blogspot.com/2011/06/wso2-esb-tips-tricks-07-cron-legacy.html
>
> [2] https://wso2.org/jira/browse/ESBJAVA-1641
>
> Thanks,
> IsuruU
>
> --
> *Isuru Udana*
> *
> *
> *
> Software Engineer
> *
> Integration Technologies Team, WSO2 Inc.; http://wso2.com
> email: [email protected] cell: +94 77 3791887
> blog: http://mytecheye.blogspot.com/
> twitter: http://twitter.com/isudana
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Thanks & regards,
Nirmal

Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to