Hi, I created an API with a load-balanced endpoint (*endpoint_0*). Configuration attached as LBApi.xml.
<api xmlns="http://ws.apache.org/ns/synapse" name="LBApi" context="/LBApi"> <resource methods="POST GET OPTIONS DELETE PUT"> <inSequence> <send> <endpoint key="*endpoint_0*"></endpoint> </send> <log level="full" xmlns="http://ws.apache.org/ns/synapse"/> </inSequence> <outSequence> <send></send> </outSequence> </resource> </api> Let's say *endpoint_0* consist of three endpoints and the load is balanced among those three endpoints. Configuration of endpoint_0 is attached as endpoint_0.xml. When (at least) one endpoint is unavailable I noticed that the log mediator in the api doesn't get executed (generally, what ever given after the send mediator doesn't get executed). I used ESB 4.8.1. Just want to know if this is a known issue or I have missed something when configuring; I will create a Jira if not. Thanks, Dilini -- *Dilini Muthumala* Software Engineer, WSO2 Inc. *E-mail :* dil...@wso2.com *Mobile: *+94713 400 029
<?xml version="1.0" encoding="UTF-8"?> <api xmlns="http://ws.apache.org/ns/synapse" name="LBApi" context="/LBApi"> <resource methods="POST GET OPTIONS DELETE PUT"> <inSequence> <send> <endpoint key="endpoint_0"/> </send> <log level="full" xmlns="http://ws.apache.org/ns/synapse"/> </inSequence> <outSequence> <send/> </outSequence> </resource> </api>
<?xml version="1.0" encoding="UTF-8"?> <endpoint xmlns="http://ws.apache.org/ns/synapse" name="endpoint_0"> <loadbalance algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin"> <endpoint name="endpoint_0_0"> <http method="post" uri-template="http://10.100.5.59:9773/services/HelloService/"/> <property name="ENDPOINT_ADDRESS" value="http://10.100.5.59:9773/services/HelloService/"/> </endpoint> <endpoint name="endpoint_0_1"> <http method="post" uri-template="http://10.100.5.59:9774/services/HelloService/"/> <property name="ENDPOINT_ADDRESS" value="http://10.100.5.59:9774/services/HelloService/"/> </endpoint> <endpoint name="endpoint_0_2"> <http method="post" uri-template="http://10.100.5.59:9775/services/HelloService/"/> <property name="ENDPOINT_ADDRESS" value="http://10.100.5.59:9775/services/HelloService/"/> </endpoint> </loadbalance> </endpoint>
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev