Hi,
i have a web service an the wso2 as and want requests to this service to be distributed in a stateful manner and i do not want to give the name of the endpoints hard coded. So my only choice is load balancing. Here is my synapse configuration: <?xml version="1.0" encoding="UTF-8"?> <definitions xmlns="http://ws.apache.org/ns/synapse"> <registry provider="org.wso2.carbon.mediation.registry.WSO2Registry"> <parameter name="extensions">org.wso2.carbon.discovery.mediation.ext.WSDiscoveryRegistryExtension</parameter> <parameter name="discoveryProxy">https://discovery-governance-arcsp.ardich.com:9443/services/DiscoveryProxy</parameter> <parameter name="cachableDuration">15000</parameter> </registry> <proxy name="DynamicWSStorageService" startOnLoad="true" trace="disable"> <target endpoint="wsdd://urn:uuid:5552ccce-b0e7-4aef-96ee-dcd254b31c84/https"> <outSequence> <send/> </outSequence> </target> <policy key="conf:/repository/axis2/service-groups/DynamicWSStorageService/services/DynamicWSStorageService/policies/WSO2CachingPolicy"/> </proxy> <proxy name="DynamicAuthenticationAdmin" startOnLoad="true" trace="disable"> <target endpoint="wsdd://urn:uuid:e84bfadf-beb3-4412-b908-b8b9f6e411f1/https"> <outSequence> <send/> </outSequence> </target> </proxy> <sequence name="fault"> <log level="full"> <property name="MESSAGE" value="Executing default 'fault' sequence"/> <property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/> <property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/> </log> <drop/> </sequence> <sequence name="main"> <in> <log level="full"/> <send> <endpoint name="manager-storage-arcsp.ardich.com"> <dynamicLoadbalance algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin"> <membershipHandler class="org.apache.synapse.core.axis2.Axis2LoadBalanceMembershipHandler"> <property name="applicationDomain" value="arcsp.storage.domain"/> </membershipHandler> </dynamicLoadbalance> </endpoint> </send> </in> <out> <send/> </out> </sequence> </definitions> I can successfully save the configuration on the ESB. But when i try to make a request to the proxy web services (DynamicAuthenticationAdmin and DynamicWSStorage) ESB gives following error: TID: [] [WSO2 Stratos Internal Enterprise Service Bus] [2012-01-13 14:51:29,604] ERROR {org.apache.synapse.endpoints.EndpointContext} - For proper clustered mode operation, all endpoints should be uniquely named {org.apache.synapse.endpoints.EndpointContext} What have done wrong on the synapse configuration? Thanks Fatih Güçlü Akkaya Software Development Engineer
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
