You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ru...@apache.org on 2010/07/28 17:54:20 UTC
svn commit: r980105 - in /synapse/trunk/java/repository/conf/sample:
synapse_sample_380.xml synapse_sample_381.xml synapse_sample_390.xml
synapse_sample_391.xml
Author: ruwan
Date: Wed Jul 28 15:54:20 2010
New Revision: 980105
URL: http://svn.apache.org/viewvc?rev=980105&view=rev
Log:
migrating samples 380, 381, 390, 391
Modified:
synapse/trunk/java/repository/conf/sample/synapse_sample_380.xml
synapse/trunk/java/repository/conf/sample/synapse_sample_381.xml
synapse/trunk/java/repository/conf/sample/synapse_sample_390.xml
synapse/trunk/java/repository/conf/sample/synapse_sample_391.xml
Modified: synapse/trunk/java/repository/conf/sample/synapse_sample_380.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/conf/sample/synapse_sample_380.xml?rev=980105&r1=980104&r2=980105&view=diff
==============================================================================
--- synapse/trunk/java/repository/conf/sample/synapse_sample_380.xml (original)
+++ synapse/trunk/java/repository/conf/sample/synapse_sample_380.xml Wed Jul 28 15:54:20 2010
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
@@ -22,7 +23,7 @@
<sequence name="fault">
<makefault>
- <code value="tns:Receiver" xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
+ <code xmlns:tns="http://www.w3.org/2003/05/soap-envelope" value="tns:Receiver"/>
<reason value="Mediation failed."/>
</makefault>
<send/>
@@ -46,4 +47,3 @@
</sequence>
</definitions>
-
Modified: synapse/trunk/java/repository/conf/sample/synapse_sample_381.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/conf/sample/synapse_sample_381.xml?rev=980105&r1=980104&r2=980105&view=diff
==============================================================================
--- synapse/trunk/java/repository/conf/sample/synapse_sample_381.xml (original)
+++ synapse/trunk/java/repository/conf/sample/synapse_sample_381.xml Wed Jul 28 15:54:20 2010
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
@@ -16,42 +17,47 @@
~ specific language governing permissions and limitations
~ under the License.
-->
-
+
<!-- CBR for Binary Messages -->
<definitions xmlns="http://synapse.apache.org/ns/2010/04/configuration">
+
<proxy name="JMSBinaryProxy" transports="jms">
- <target inSequence="BINARY_CBR_SEQ" />
+ <target inSequence="BINARY_CBR_SEQ"/>
</proxy>
+
<sequence name="BINARY_CBR_SEQ">
<in>
<log level="full"/>
- <property action="set" name="OUT_ONLY" value="true"/>
+ <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"/>
+ <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>
+ <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&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616&transport.jms.DestinationType=topic"/>
- </endpoint>
- </send>
- </case>
- <case regex="MSFT">
- <send>
- <endpoint>
- <address uri="jms:/dynamicTopics/mdd.MSFT?transport.jms.ConnectionFactoryJNDIName=TopicConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616&transport.jms.DestinationType=topic"/>
- </endpoint>
- </send>
- </case>
- <default></default>
- </switch>
+ <case regex="GOOG">
+ <send>
+ <endpoint>
+ <address
+ uri="jms:/dynamicTopics/mdd.GOOG?transport.jms.ConnectionFactoryJNDIName=TopicConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616&transport.jms.DestinationType=topic"/>
+ </endpoint>
+ </send>
+ </case>
+ <case regex="MSFT">
+ <send>
+ <endpoint>
+ <address
+ uri="jms:/dynamicTopics/mdd.MSFT?transport.jms.ConnectionFactoryJNDIName=TopicConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616&transport.jms.DestinationType=topic"/>
+ </endpoint>
+ </send>
+ </case>
+ <default/>
+ </switch>
</in>
</sequence>
+
</definitions>
Modified: synapse/trunk/java/repository/conf/sample/synapse_sample_390.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/conf/sample/synapse_sample_390.xml?rev=980105&r1=980104&r2=980105&view=diff
==============================================================================
--- synapse/trunk/java/repository/conf/sample/synapse_sample_390.xml (original)
+++ synapse/trunk/java/repository/conf/sample/synapse_sample_390.xml Wed Jul 28 15:54:20 2010
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
@@ -17,7 +18,7 @@
~ under the License.
-->
- <!-- Introduction to the XQuery mediator -->
+<!-- Introduction to the XQuery mediator -->
<definitions xmlns="http://synapse.apache.org/ns/2010/04/configuration">
<!-- the SimpleURLRegistry allows access to a URL based registry (e.g. file:/// or http://) -->
@@ -30,12 +31,13 @@
<localEntry key="xquery-key-req"
src="file:repository/conf/sample/resources/xquery/xquery_req.xq"/>
+
<proxy name="StockQuoteProxy">
<target>
<inSequence>
- <property name="body" expression="$body/child::*[position()=1]" />
+ <property name="body" expression="$body/child::*[position()=1]"/>
<xquery key="xquery-key-req">
- <variable name="payload" type="ELEMENT"/>
+ <variable name="payload" type="ELEMENT"/>
</xquery>
<send>
<endpoint>
@@ -47,12 +49,13 @@
<out>
<xquery key="xquery/xquery_res.xq">
<variable name="payload" type="ELEMENT"/>
- <variable name="code" type="STRING"
- expression="self::node()//m0:return/ax21:symbol/child::text()"
- xmlns:m0="http://services.samples" xmlns:ax21="http://services.samples/xsd"/>
- <variable name="price" type="DOUBLE"
- expression="self::node()//m0:return/ax21:last/child::text()"
- xmlns:m0="http://services.samples" xmlns:ax21="http://services.samples/xsd"/>
+ <variable xmlns:m0="http://services.samples"
+ xmlns:ax21="http://services.samples/xsd" name="code" type="STRING"
+ expression="self::node()//m0:return/ax21:symbol/child::text()"/>
+ <variable xmlns:m0="http://services.samples"
+ xmlns:ax21="http://services.samples/xsd" name="price"
+ type="DOUBLE"
+ expression="self::node()//m0:return/ax21:last/child::text()"/>
</xquery>
<send/>
</out>
@@ -61,4 +64,4 @@
<publishWSDL uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
</proxy>
-</definitions>
\ No newline at end of file
+</definitions>
Modified: synapse/trunk/java/repository/conf/sample/synapse_sample_391.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/conf/sample/synapse_sample_391.xml?rev=980105&r1=980104&r2=980105&view=diff
==============================================================================
--- synapse/trunk/java/repository/conf/sample/synapse_sample_391.xml (original)
+++ synapse/trunk/java/repository/conf/sample/synapse_sample_391.xml Wed Jul 28 15:54:20 2010
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
@@ -40,8 +41,8 @@
<outSequence>
<out>
<xquery key="xquery/xquery_commisson.xq">
- <variable name="payload" type="ELEMENT"></variable>
- <variable name="commission" type="ELEMENT" key="misc/commission.xml"></variable>
+ <variable name="payload" type="ELEMENT"/>
+ <variable name="commission" type="ELEMENT" key="misc/commission.xml"/>
</xquery>
<send/>
</out>
@@ -50,4 +51,4 @@
<publishWSDL uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
</proxy>
-</definitions>
\ No newline at end of file
+</definitions>