You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by ch...@apache.org on 2007/04/02 19:46:25 UTC
svn commit: r524849 - in
/webservices/synapse/trunk/java/repository/conf/sample:
synapse_sample_200.xml synapse_sample_201.xml synapse_sample_202.xml
synapse_sample_203.xml synapse_sample_204.xml synapse_sample_205.xml
Author: chathura_ce
Date: Mon Apr 2 10:46:24 2007
New Revision: 524849
URL: http://svn.apache.org/viewvc?view=rev&rev=524849
Log:
Added samples for http session based load balancing. Changed the names of the services used in load balancing samples.
Added:
webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_204.xml
webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_205.xml
Modified:
webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_200.xml
webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_201.xml
webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_202.xml
webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_203.xml
Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_200.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_200.xml?view=diff&rev=524849&r1=524848&r2=524849
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_200.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_200.xml Mon Apr 2 10:46:24 2007
@@ -26,17 +26,17 @@
<endpoint>
<loadbalance>
<endpoint>
- <address uri="http://localhost:9001/axis2/services/LoadbalanceFailoverService">
+ <address uri="http://localhost:9001/axis2/services/LBService1">
<enableAddressing/>
</address>
</endpoint>
<endpoint>
- <address uri="http://localhost:9002/axis2/services/LoadbalanceFailoverService">
+ <address uri="http://localhost:9002/axis2/services/LBService1">
<enableAddressing/>
</address>
</endpoint>
<endpoint>
- <address uri="http://localhost:9003/axis2/services/LoadbalanceFailoverService">
+ <address uri="http://localhost:9003/axis2/services/LBService1">
<enableAddressing/>
</address>
</endpoint>
Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_201.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_201.xml?view=diff&rev=524849&r1=524848&r2=524849
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_201.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_201.xml Mon Apr 2 10:46:24 2007
@@ -26,17 +26,17 @@
<endpoint>
<failover>
<endpoint>
- <address uri="http://localhost:9001/axis2/services/LoadbalanceFailoverService">
+ <address uri="http://localhost:9001/axis2/services/LBService1">
<enableAddressing/>
</address>
</endpoint>
<endpoint>
- <address uri="http://localhost:9002/axis2/services/LoadbalanceFailoverService">
+ <address uri="http://localhost:9002/axis2/services/LBService1">
<enableAddressing/>
</address>
</endpoint>
<endpoint>
- <address uri="http://localhost:9003/axis2/services/LoadbalanceFailoverService">
+ <address uri="http://localhost:9003/axis2/services/LBService1">
<enableAddressing/>
</address>
</endpoint>
Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_202.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_202.xml?view=diff&rev=524849&r1=524848&r2=524849
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_202.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_202.xml Mon Apr 2 10:46:24 2007
@@ -31,17 +31,17 @@
<loadbalance>
<endpoint>
- <address uri="http://localhost:9001/axis2/services/LoadbalanceFailoverService">
+ <address uri="http://localhost:9001/axis2/services/LBService1">
<enableAddressing/>
</address>
</endpoint>
<endpoint>
- <address uri="http://localhost:9002/axis2/services/LoadbalanceFailoverService">
+ <address uri="http://localhost:9002/axis2/services/LBService1">
<enableAddressing/>
</address>
</endpoint>
<endpoint>
- <address uri="http://localhost:9003/axis2/services/LoadbalanceFailoverService">
+ <address uri="http://localhost:9003/axis2/services/LBService1">
<enableAddressing/>
</address>
</endpoint>
Modified: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_203.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_203.xml?view=diff&rev=524849&r1=524848&r2=524849
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_203.xml (original)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_203.xml Mon Apr 2 10:46:24 2007
@@ -33,12 +33,12 @@
<endpoint>
<failover>
<endpoint>
- <address uri="http://localhost:9001/axis2/services/LoadbalanceFailoverService">
+ <address uri="http://localhost:9001/axis2/services/LBService1">
<enableAddressing/>
</address>
</endpoint>
<endpoint>
- <address uri="http://localhost:9002/axis2/services/LoadbalanceFailoverService">
+ <address uri="http://localhost:9002/axis2/services/LBService1">
<enableAddressing/>
</address>
</endpoint>
@@ -47,12 +47,12 @@
<endpoint>
<failover>
<endpoint>
- <address uri="http://localhost:9003/axis2/services/LoadbalanceFailoverService">
+ <address uri="http://localhost:9003/axis2/services/LBService1">
<enableAddressing/>
</address>
</endpoint>
<endpoint>
- <address uri="http://localhost:9004/axis2/services/LoadbalanceFailoverService">
+ <address uri="http://localhost:9004/axis2/services/LBService1">
<enableAddressing/>
</address>
</endpoint>
Added: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_204.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_204.xml?view=auto&rev=524849
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_204.xml (added)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_204.xml Mon Apr 2 10:46:24 2007
@@ -0,0 +1,59 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<!-- Demontrates session affinity load balancing between 3 endpoints. We are using client
+ initiated session for this sample. -->
+<definitions xmlns="http://ws.apache.org/ns/synapse">
+
+ <sequence name="main">
+ <in>
+ <send>
+ <endpoint>
+
+ <!-- bind to HTTP sessions based on HTTP cookies -->
+ <session type="http"/>
+
+ <loadbalance>
+ <endpoint>
+ <address uri="http://localhost:9001/axis2/services/LBService2">
+ <enableAddressing/>
+ </address>
+ </endpoint>
+ <endpoint>
+ <address uri="http://localhost:9002/axis2/services/LBService2">
+ <enableAddressing/>
+ </address>
+ </endpoint>
+ <endpoint>
+ <address uri="http://localhost:9003/axis2/services/LBService2">
+ <enableAddressing/>
+ </address>
+ </endpoint>
+ </loadbalance>
+ </endpoint>
+ </send>
+ </in>
+
+ <out>
+ <!-- Send the messages where they have been sent (i.e. implicit To EPR) -->
+ <send/>
+ </out>
+ </sequence>
+
+</definitions>
Added: webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_205.xml
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_205.xml?view=auto&rev=524849
==============================================================================
--- webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_205.xml (added)
+++ webservices/synapse/trunk/java/repository/conf/sample/synapse_sample_205.xml Mon Apr 2 10:46:24 2007
@@ -0,0 +1,72 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<!-- Demontrates the session affinity load balancing between fail over endpoints. If endpoint servers
+maintain session specific data, such data have to replicated among the failover endpoints. -->
+<definitions xmlns="http://ws.apache.org/ns/synapse">
+
+ <sequence name="main">
+ <in>
+ <send>
+ <endpoint>
+
+ <!-- bind to HTTP sessions based on HTTP cookies -->
+ <session type="http"/>
+
+ <loadbalance>
+ <endpoint>
+ <failover>
+ <endpoint>
+ <address uri="http://localhost:9001/axis2/services/LBService2">
+ <enableAddressing/>
+ </address>
+ </endpoint>
+ <endpoint>
+ <address uri="http://localhost:9002/axis2/services/LBService2">
+ <enableAddressing/>
+ </address>
+ </endpoint>
+ </failover>
+ </endpoint>
+ <endpoint>
+ <failover>
+ <endpoint>
+ <address uri="http://localhost:9003/axis2/services/LBService2">
+ <enableAddressing/>
+ </address>
+ </endpoint>
+ <endpoint>
+ <address uri="http://localhost:9004/axis2/services/LBService2">
+ <enableAddressing/>
+ </address>
+ </endpoint>
+ </failover>
+ </endpoint>
+ </loadbalance>
+ </endpoint>
+ </send>
+ </in>
+
+ <out>
+ <!-- Send the messages where they have been sent (i.e. implicit To EPR) -->
+ <send/>
+ </out>
+ </sequence>
+
+</definitions>
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org