+1 The proper way is to treat LB and FO endpoints as live endpoints and just turn of/on from that level.
Thanks, Ruwan On Thu, Feb 3, 2011 at 2:01 PM, Supun Kamburugamuva <supu...@gmail.com>wrote: > +1, turning the LB/FO endpoints on/off is the correct approach. > > Thanks, > Supun. > > On Thu, Feb 3, 2011 at 12:11 PM, Miyuru Wanninayaka <miyur...@gmail.com> > wrote: > > Hi all, > > > > As current implementation of LoadBalance and FailOver endpoints, when we > > turned off LB/FO endpoint from jconsole, what really happens is all child > > endpoints of FO/LB endpoints gets switched off. I think this behavior is > > wrong. Since FO/LB endpoint has a context, it's possible to keep status > in > > that context and handle in send() method of LB/OF endpoints without > turning > > off child endpoints. > > > > Also in shared indirect endpoint situations like this: > > > > <endpoint name="ST_Quote_LB1"> > > <loadbalance > > algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin"> > > <endpoint key="SimpleStockQuoteService_EP"/> > > </loadbalance> > > </endpoint> > > <endpoint name="ST_Quote_FO1"> > > <failover> > > <endpoint key="SimpleStockQuoteService_EP"/> > > </failover> > > </endpoint> > > <endpoint name="SimpleStockQuoteService_EP"> > > <address > > uri="http://localhost:9000/services/SimpleStockQuoteService"/> > > </endpoint> > > > > turning off ST_Quote_LB1 will cause ST_Quote_FO1 to stop working. > > > > Any ideas? > > > > -- > > Miyuru Wanninayaka > > Software Engineer - WSO2 Inc. > > > > > > -- > Technical Lead, WSO2 Inc > http://wso2.org > supunk.blogspot.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org > For additional commands, e-mail: dev-h...@synapse.apache.org > > -- Ruwan Linton Member, Apache Software Foundation; http://www.apache.org Software Architect & Product Manager, WSO2 Inc.; http://wso2.org phone: +1 408 754 7388 ext 51789 email: ru...@wso2.com; cell: +94 77 341 3097 blog: http://blog.ruwan.org linkedin: http://www.linkedin.com/in/ruwanlinton google: http://www.google.com/profiles/ruwan.linton tweet: http://twitter.com/ruwanlinton