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.

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

Reply via email to