Author: ruwan
Date: Tue Jun 23 17:22:43 2009
New Revision: 39744
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=39744

Log:
Adding some new samples


Added:
   
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_102.xml
   
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_12.xml
   
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_202.xml
   
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_259.xml
   
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_260.xml
   
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_261.xml
   
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_262.xml
   
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_381.xml
   
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_57.xml
   
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_58.xml

Added: 
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_102.xml
URL: 
http://wso2.org/svn/browse/wso2/branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_102.xml?pathrev=39744
==============================================================================
--- (empty file)
+++ 
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_102.xml
  Tue Jun 23 17:22:43 2009
@@ -0,0 +1,44 @@
+<!--
+  ~  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.
+  -->
+
+<!-- Reliable message exchange between Synapse and the back-end server using 
WS-ReliableMessaging -->
+<definitions xmlns="http://ws.apache.org/ns/synapse";>
+
+    <in>
+        <RMSequence single="true" version="1.1"/>
+        <send>
+               <endpoint name="reliable">
+                       <address 
uri="http://localhost:9000/services/ReliableStockQuoteService";>
+                               <enableRM/>
+                               <enableAddressing/>
+                           </address>
+            </endpoint>
+        </send>
+    </in>
+    <out>
+        <header name="wsrm:SequenceAcknowledgement" action="remove"
+                xmlns:wsrm="http://docs.oasis-open.org/ws-rx/wsrm/200702"/>
+        <header name="wsrm:Sequence" action="remove"
+                xmlns:wsrm="http://docs.oasis-open.org/ws-rx/wsrm/200702"/>
+        <header name="wsrm:AckRequested" action="remove"
+                xmlns:wsrm="http://docs.oasis-open.org/ws-rx/wsrm/200702"/>
+        <send/>
+    </out>
+
+</definitions>

Added: 
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_12.xml
URL: 
http://wso2.org/svn/browse/wso2/branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_12.xml?pathrev=39744
==============================================================================
--- (empty file)
+++ 
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_12.xml
   Tue Jun 23 17:22:43 2009
@@ -0,0 +1,42 @@
+<!--
+  ~  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.
+  -->
+
+<!-- Introduction to  endpoints /sequence from local registry -->
+<definitions xmlns="http://ws.apache.org/ns/synapse";>
+    <localEntry key="local-enrty-ep-key"
+                
src="file:repository/conf/sample/resources/endpoint/dynamic_endpt_1.xml"/>
+
+    <localEntry key="local-enrty-sequence-key">
+        <sequence name="dynamic_sequence" 
xmlns="http://ws.apache.org/ns/synapse";>
+            <log level="custom">
+                <property name="message" value="*** Test Message 1 ***"/>
+            </log>
+        </sequence>
+    </localEntry>
+
+    <in>
+        <sequence key="local-enrty-sequence-key"/>
+        <send>
+            <endpoint key="local-enrty-ep-key"/>
+        </send>
+    </in>
+    <out>
+        <send/>
+    </out>
+</definitions>

Added: 
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_202.xml
URL: 
http://wso2.org/svn/browse/wso2/branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_202.xml?pathrev=39744
==============================================================================
--- (empty file)
+++ 
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_202.xml
  Tue Jun 23 17:22:43 2009
@@ -0,0 +1,44 @@
+<!--
+  ~  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.
+  -->
+
+<!-- Reliable message exchange between the client and proxy services using 
WS-ReliableMessaging -->
+<definitions xmlns="http://ws.apache.org/ns/synapse";>
+    <proxy name="StockQuoteProxy">
+        <target>
+            <inSequence>
+                <header name="wsrm:SequenceAcknowledgement" action="remove"
+                        
xmlns:wsrm="http://docs.oasis-open.org/ws-rx/wsrm/200702"/>
+                <header name="wsrm:Sequence" action="remove"
+                        
xmlns:wsrm="http://docs.oasis-open.org/ws-rx/wsrm/200702"/>
+                <header name="wsrm:AckRequested" action="remove"
+                        
xmlns:wsrm="http://docs.oasis-open.org/ws-rx/wsrm/200702"/>
+                <send>
+                    <endpoint>
+                        <address 
uri="http://localhost:9000/services/SimpleStockQuoteService"/>
+                    </endpoint>
+                </send>
+            </inSequence>
+                       <outSequence>
+                               <send/>
+                       </outSequence>
+        </target>
+        <publishWSDL 
uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
+        <enableRM/>
+    </proxy>
+</definitions>

Added: 
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_259.xml
URL: 
http://wso2.org/svn/browse/wso2/branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_259.xml?pathrev=39744
==============================================================================
--- (empty file)
+++ 
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_259.xml
  Tue Jun 23 17:22:43 2009
@@ -0,0 +1,41 @@
+<!--
+  ~  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.
+  -->
+
+<!-- FIX to HTTP Proxy Service -->
+<definitions xmlns="http://ws.apache.org/ns/synapse";>
+       <localEntry key="xslt-key-req"
+               
src="file:repository/conf/sample/resources/transform/transform_fix_to_http.xslt"
 />
+       <proxy name="FIXProxy" transports="fix">
+               <target>
+                       <endpoint>
+                               <address 
uri="http://localhost:9000/services/SimpleStockQuoteService"; />
+                       </endpoint>
+                       <inSequence>
+                               <log level="full" />
+                               <xslt key="xslt-key-req" />
+                               <log level="full" />
+                       </inSequence>
+                       <outSequence>
+                               <log level="full" />
+                       </outSequence>
+               </target>
+               <parameter 
name="transport.fix.AcceptorConfigURL">file:repository/conf/sample/resources/fix/fix-synapse.cfg</parameter>
+               <parameter 
name="transport.fix.AcceptorMessageStore">file</parameter>
+       </proxy>
+</definitions>
\ No newline at end of file

Added: 
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_260.xml
URL: 
http://wso2.org/svn/browse/wso2/branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_260.xml?pathrev=39744
==============================================================================
--- (empty file)
+++ 
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_260.xml
  Tue Jun 23 17:22:43 2009
@@ -0,0 +1,44 @@
+<!--
+  ~  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.
+  -->
+
+<!-- FIX to AMQP Proxy Service -->
+<definitions xmlns="http://ws.apache.org/ns/synapse";>
+       <proxy name="FIXProxy" transports="fix">
+               <target>
+                       <endpoint>
+                               <address 
uri="jms:/QpidStockQuoteService?transport.jms.ConnectionFactoryJNDIName=qpidConnectionfactory&amp;java.naming.factory.initial=org.apache.qpid.jndi.PropertiesFileInitialContextFactory&amp;java.naming.provider.url=repository/conf/sample/resources/fix/conn.properties&amp;transport.jms.ReplyDestination=replyQueue"/>
+                       </endpoint>
+                       <inSequence>
+                               <log level="full" />
+                       </inSequence>
+                       <outSequence>
+                           <property name="transport.fix.ServiceName"
+                                       value="FIXProxy" scope="axis2-client" />
+                               <log level="full" />
+                <send />
+                       </outSequence>
+               </target>
+               <parameter name="transport.fix.AcceptorConfigURL">
+                       
file:repository/conf/sample/resources/fix/fix-synapse.cfg
+               </parameter>
+               <parameter name="transport.fix.AcceptorMessageStore">
+                       file
+               </parameter>
+       </proxy>
+</definitions>
\ No newline at end of file

Added: 
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_261.xml
URL: 
http://wso2.org/svn/browse/wso2/branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_261.xml?pathrev=39744
==============================================================================
--- (empty file)
+++ 
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_261.xml
  Tue Jun 23 17:22:43 2009
@@ -0,0 +1,39 @@
+<!--
+  ~  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.
+  -->
+
+<!-- Switch between FIX versions 4.0 to 4.1 -->
+<definitions xmlns="http://ws.apache.org/ns/synapse";>
+   <proxy name="OrderProcesserProxy41" transports="fix">
+      <target>
+         <endpoint>
+            <address 
uri="fix://localhost:19877?BeginString=FIX.4.1&amp;SenderCompID=SYNAPSE&amp;TargetCompID=EXEC"/>
+         </endpoint>
+         <inSequence><log level="full"/></inSequence>
+         <outSequence><log level="full"/><send/></outSequence>
+      </target>
+      <parameter name="transport.fix.AcceptorConfigURL">
+       file:repository/conf/sample/resources/fix/fix-synapse-m40.cfg
+      </parameter>
+      <parameter name="transport.fix.AcceptorMessageStore">file</parameter>
+      <parameter name="transport.fix.InitiatorConfigURL">
+       file:repository/conf/sample/resources/fix/synapse-sender-m.cfg
+      </parameter>
+      <parameter name="transport.fix.InitiatorMessageStore">file</parameter>
+   </proxy>
+</definitions>
\ No newline at end of file

Added: 
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_262.xml
URL: 
http://wso2.org/svn/browse/wso2/branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_262.xml?pathrev=39744
==============================================================================
--- (empty file)
+++ 
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_262.xml
  Tue Jun 23 17:22:43 2009
@@ -0,0 +1,63 @@
+<!--
+  ~  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.
+  -->
+
+<!-- CBR of FIX messages, using symbol (tag 55) -->
+<definitions xmlns="http://ws.apache.org/ns/synapse";>
+   <sequence name="CBR_SEQ">
+       <in>
+               <switch source="//message/body/fie...@id='55']">
+                       <case regex="GOOG">
+                               <send>
+                                       <endpoint>
+                                               <address
+                                                       
uri="fix://localhost:19876?BeginString=FIX.4.0&amp;SenderCompID=SYNAPSE&amp;TargetCompID=EXEC"
 />
+                                               </endpoint>
+                               </send>
+                       </case>
+                       <case regex="MSFT">
+                               <send>
+                                       <endpoint>
+                                               <address
+                                                       
uri="fix://localhost:19877?BeginString=FIX.4.1&amp;SenderCompID=SYNAPSE&amp;TargetCompID=EXEC"
 />
+                                       </endpoint>
+                               </send>
+                       </case>
+                       <default></default>
+               </switch>
+       </in>
+       <out>
+               <send />
+       </out>
+   </sequence>
+   <proxy name="FIXProxy" transports="fix">
+       <target inSequence="CBR_SEQ" />
+       <parameter name="transport.fix.AcceptorConfigURL">
+               file:repository/conf/sample/resources/fix/fix-synapse.cfg
+       </parameter>
+       <parameter name="transport.fix.AcceptorMessageStore">
+               file
+       </parameter>
+       <parameter name="transport.fix.InitiatorConfigURL">
+               file:repository/conf/sample/resources/fix/synapse-sender.cfg
+       </parameter>
+       <parameter name="transport.fix.InitiatorMessageStore">
+               file
+       </parameter>
+   </proxy>
+</definitions>
\ No newline at end of file

Added: 
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_381.xml
URL: 
http://wso2.org/svn/browse/wso2/branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_381.xml?pathrev=39744
==============================================================================
--- (empty file)
+++ 
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_381.xml
  Tue Jun 23 17:22:43 2009
@@ -0,0 +1,57 @@
+<!--
+  ~  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.
+  -->
+
+<!-- CBR for Binary Messages -->
+<definitions xmlns="http://ws.apache.org/ns/synapse";>
+    <proxy name="JMSBinaryProxy" transports="jms">
+        <target inSequence="BINARY_CBR_SEQ" />
+    </proxy>
+    <sequence name="BINARY_CBR_SEQ">
+        <in>
+            <log level="full"/>
+             <property action="set" name="OUT_ONLY" value="true"/>
+            <class name="samples.mediators.BinaryExtractMediator">
+                           <property name="offset" value="11"/>
+                           <property name="length" value="4"/>
+                           <property name="variableName" value="symbol"/>
+                           <property name="binaryEncoding" value ="utf-8"/>
+            </class>
+                   <log level="custom">
+                       <property name="symbol" 
expression="get-property('symbol')"/>
+           </log>
+            <switch source="get-property('symbol')">
+                           <case regex="GOOG">
+                                   <send>
+                                           <endpoint>
+                                                   <address 
uri="jms:/dynamicTopics/mdd.GOOG?transport.jms.ConnectionFactoryJNDIName=TopicConnectionFactory&amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;java.naming.provider.url=tcp://localhost:61616&amp;transport.jms.DestinationType=topic"/>
+                                       </endpoint>
+                               </send>
+                       </case>
+                           <case regex="MSFT">
+                                       <send>
+                                       <endpoint>
+                                               <address 
uri="jms:/dynamicTopics/mdd.MSFT?transport.jms.ConnectionFactoryJNDIName=TopicConnectionFactory&amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;java.naming.provider.url=tcp://localhost:61616&amp;transport.jms.DestinationType=topic"/>
+                                           </endpoint>
+                               </send>
+                       </case>
+                    <default></default>
+               </switch>
+        </in>
+    </sequence>
+</definitions>
\ No newline at end of file

Added: 
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_57.xml
URL: 
http://wso2.org/svn/browse/wso2/branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_57.xml?pathrev=39744
==============================================================================
--- (empty file)
+++ 
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_57.xml
   Tue Jun 23 17:22:43 2009
@@ -0,0 +1,53 @@
+<!--
+  ~  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.
+  -->
+
+<!-- Session less load balancing between 3 endpoints -->
+<definitions xmlns="http://ws.apache.org/ns/synapse";>
+
+    <sequence name="main" onError="errorHandler">
+        <in>
+            <send>
+                <endpoint name="dynamicLB">
+                    <dynamicLoadbalance failover="true"
+                                        
algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin">
+                        <membershipHandler
+                                
class="org.apache.synapse.core.axis2.Axis2LoadBalanceMembershipHandler">
+                            <property name="applicationDomain" 
value="apache.axis2.app.domain"/>
+                        </membershipHandler>
+                    </dynamicLoadbalance>
+                </endpoint>
+            </send>
+            <drop/>
+        </in>
+
+        <out>
+            <!-- Send the messages where they have been sent (i.e. implicit To 
EPR) -->
+            <send/>
+        </out>
+    </sequence>
+
+    <sequence name="errorHandler">
+        <makefault response="true">
+            <code value="tns:Receiver" 
xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
+            <reason value="COULDN'T SEND THE MESSAGE TO THE SERVER."/>
+        </makefault>
+        <send/>
+    </sequence>
+
+</definitions>
\ No newline at end of file

Added: 
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_58.xml
URL: 
http://wso2.org/svn/browse/wso2/branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_58.xml?pathrev=39744
==============================================================================
--- (empty file)
+++ 
branches/esb/java/2.1/product/modules/samples/src/main/conf/synapse/synapse_sample_58.xml
   Tue Jun 23 17:22:43 2009
@@ -0,0 +1,51 @@
+<!--
+  ~  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.
+  -->
+
+<!-- Session less load balancing between 3 endpoints -->
+<definitions xmlns="http://ws.apache.org/ns/synapse";>
+
+    <sequence name="main" onError="errorHandler">
+        <in>
+            <send>
+                <endpoint>
+                    <loadbalance failover="true">
+                        <member hostName="127.0.0.1" httpPort="9001" 
httpsPort="9005"/>
+                        <member hostName="127.0.0.1" httpPort="9002" 
httpsPort="9006"/>
+                        <member hostName="127.0.0.1" httpPort="9003" 
httpsPort="9007"/>
+                    </loadbalance>
+                </endpoint>
+            </send>
+            <drop/>
+        </in>
+
+        <out>
+            <!-- Send the messages where they have been sent (i.e. implicit To 
EPR) -->
+            <send/>
+        </out>
+    </sequence>
+
+    <sequence name="errorHandler">
+        <makefault response="true">
+            <code value="tns:Receiver" 
xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
+            <reason value="COULDN'T SEND THE MESSAGE TO THE SERVER."/>
+        </makefault>
+        <send/>
+    </sequence>
+
+</definitions>
\ No newline at end of file

_______________________________________________
Esb-java-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to