+ 1 BTW, why do we use indirect endpoints? if it is for reuse then what are the reusable elements - an endpoint definition, an runtime endpoint instance or both? what kind of reuse an end user expects?
If the child endpoint of ST_Quote_LB1 get inactive due to failures, should that cause to stop ST_Quote_FO1 working? if the the runtime instance is reused, then I believe It would happen. But, if we expect to reuse only the endpoint definition, it should not happen. And for the latter case, the switchoff of ST_Quote_LB1 (including its children) would not affect any other endpoint. So, if we expected the reuse of endpoint definition, then, the current implementation of the indirect endpoint is wrong. ~ Indika On Thu, Feb 3, 2011 at 12:11 PM, Miyuru Wanninayaka <[email protected]>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 <http://wso2.com/>. >
