[Dev] Example use of Coordinator API

2014-02-06 Thread Chan
Hi Azeez, Do you have a code sample of Coordinator API usage in Carbon 4.2.X? Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website

Re: [Dev] Example use of Coordinator API

2014-02-06 Thread Nirmal Fernando
Azeez, Does Hazelcast support the coordination election? On Thu, Feb 6, 2014 at 1:47 PM, Chan duli...@wso2.com wrote: Hi Azeez, Do you have a code sample of Coordinator API usage in Carbon 4.2.X? Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile

Re: [Dev] Example use of Coordinator API

2014-02-06 Thread Afkham Azeez
On Thu, Feb 6, 2014 at 1:50 PM, Nirmal Fernando nir...@wso2.com wrote: Azeez, Does Hazelcast support the coordination election? There is no such API but we can easily implement it by using the Hazelcast ILock. Whoever owns the lock will become the coordinator. When the member holding the

Re: [Dev] Example use of Coordinator API

2014-02-06 Thread Sameera Jayasoma
I guess we do have a similar implementation in our Task component where a task is executed only in one member of the cluster. I got to know that you guys have a similar requirement. Thanks, Sameera. On Thu, Feb 6, 2014 at 7:02 PM, Afkham Azeez az...@wso2.com wrote: On Thu, Feb 6, 2014 at