You can have your custom endpoint logic. There is no UI support yet. Check the following posts on how to add your custom endpoint concepts.
[1]http://vvratha.blogspot.com/2012/07/class-endpoints-in-synapse.html [2]http://vvratha.blogspot.com/2013/06/class-endpointssample.html On 6 December 2013 13:30, Aliosha <aliosh...@gmail.com> wrote: > i'm Alessio Orlando, a software engineer from italy dealing with WSO2 for > some months. > Now i m facing up to a problem relating the load balance endpoint. > I have this configuration: > > <?xml version="1.0" encoding="UTF-8"?> > <endpoint xmlns="http://ws.apache.org/ns/synapse" name="test"> > <loadbalance > algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin"> > <endpoint name="tomcat1"> > <address uri="http://localhost:8080/RestService/rest/servizio"> > <timeout> > <duration>5000</duration> > <responseAction>fault</responseAction> > </timeout> > </address> > </endpoint> > <endpoint name="tomcat2"> > <address uri="http://localhost:8081/RestService/rest/servizio"> > <timeout> > <duration>5000</duration> > <responseAction>fault</responseAction> > </timeout> > </address> > </endpoint> > <endpoint name="Tomcat3"> > <address uri="http://localhost:8082/RestService/rest/servizio"> > <timeout> > <duration>5000</duration> > <responseAction>fault</responseAction> > </timeout> > </address> > </endpoint> > </loadbalance> > </endpoint> > > > I want that if one of the 3 endpoints goes into the Suspended state i can > trigger a custom sequence. > I was able till now to write a proxy in which, in the outsequence, i can > read the ERROR_CODE of the endpoint in fault state. But i m not able to > know which of the 3 enpoints is gone into that state (the name or the > address). > Do you have any suggestion? > > i have another question. > As far as you know, is there thed possibility in Wso2 to extend an > endpoint class i.e load balanced endpoint, making my custom load balance > endpoint, and to import it into the esb? > I saw some code like this: > <endpoint> > <class name= my.custom.endpoint > > .... > </class> > </endpoint> > > but it's for synapse. > I tried it in the esb but it gave me error stating it's not valid. > Is there a way to use it as a normal load balanced endpoint? ( with all > its child endpoint definitions). > In the endpoint section i have not seen anything similar to "add custom > andpoint". > > > Really thanks for your help. > Best regards. > Alessio > -- -Ratha mobile: (+94)755906608
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev