servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r387210 - /incubator/servicemix/trunk/servicemix-core/src/test/resources/org/apache/servicemix/components/util/chained-router.xml
Date Mon, 20 Mar 2006 13:23:50 GMT
Author: gnodet
Date: Mon Mar 20 05:23:48 2006
New Revision: 387210

URL: http://svn.apache.org/viewcvs?rev=387210&view=rev
Log:
SM-258: Add a xbean-spring qname processor to use the use of ChainedComponent
This feature has been added in xbean-spring 2.2

Modified:
    incubator/servicemix/trunk/servicemix-core/src/test/resources/org/apache/servicemix/components/util/chained-router.xml

Modified: incubator/servicemix/trunk/servicemix-core/src/test/resources/org/apache/servicemix/components/util/chained-router.xml
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-core/src/test/resources/org/apache/servicemix/components/util/chained-router.xml?rev=387210&r1=387209&r2=387210&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/test/resources/org/apache/servicemix/components/util/chained-router.xml
(original)
+++ incubator/servicemix/trunk/servicemix-core/src/test/resources/org/apache/servicemix/components/util/chained-router.xml
Mon Mar 20 05:23:48 2006
@@ -1,78 +1,61 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <beans xmlns:sm="http://servicemix.apache.org/config/1.0"
-	xmlns:foo="http://servicemix.org/demo/">
+       xmlns:foo="http://servicemix.org/demo/"
+       xmlns:util="java://org.apache.servicemix.components.util">
 
 	<!-- the JBI container -->
 	<sm:container id="jbi" flowName="st">
 		<sm:activationSpecs>
 
 			<sm:activationSpec componentName="sender"
-				service="foo:sender" endpoint="sender"
-				destinationService="foo:chain">
+			                   service="foo:sender" 
+			                   endpoint="sender"
+			                   destinationService="foo:chain">
 				<sm:component>
-					<bean
-						class="org.apache.servicemix.tck.SenderComponent" />
+					<bean class="org.apache.servicemix.tck.SenderComponent" />
 				</sm:component>
 			</sm:activationSpec>
 
-			<sm:activationSpec componentName="chain" service="foo:chain"
-				destinationService="foo:receiver">
+			<sm:activationSpec componentName="chain" 
+			                   service="foo:chain"
+			                   destinationService="foo:receiver">
 				<sm:component>
-					<bean xmlns=""
-						class="org.apache.servicemix.components.util.ChainedComponent">
-						<property name="services">
-							<list>
-								<bean
-									class="javax.xml.namespace.QName">
-									<constructor-arg
-										value="http://servicemix.org/demo/" />
-									<constructor-arg
-										value="transformer1" />
-								</bean>
-								<bean
-									class="javax.xml.namespace.QName">
-									<constructor-arg
-										value="http://servicemix.org/demo/" />
-									<constructor-arg
-										value="transformer2" />
-								</bean>
-							</list>
-						</property>
-					</bean>
+					<util:ChainedComponent>
+						<services>
+						    <qname>foo:transformer1</qname>
+						    <qname>foo:transformer2</qname>
+						</services>
+					</util:ChainedComponent>
 				</sm:component>
 			</sm:activationSpec>
 
 			<sm:activationSpec componentName="transformer1"
-				service="foo:transformer1">
+			                   service="foo:transformer1">
 				<sm:component>
-					<TransformComponent
-						xmlns="java://org.apache.servicemix.components.util">
+					<util:TransformComponent>
 						<transformer>
-							<PropertyAddTransformer name="prop1"
-								value="value1" />
+							<util:PropertyAddTransformer name="prop1" value="value1" />
 						</transformer>
-					</TransformComponent>
+					</util:TransformComponent>
 				</sm:component>
 			</sm:activationSpec>
 
 			<sm:activationSpec componentName="transformer2"
-				service="foo:transformer2">
+			                   service="foo:transformer2">
 				<sm:component>
-					<TransformComponent
-						xmlns="java://org.apache.servicemix.components.util">
+					<util:TransformComponent>
 						<transformer>
-							<PropertyAddTransformer name="prop2"
-								value="value2" />
+							<util:PropertyAddTransformer name="prop2" value="value2" />
 						</transformer>
-					</TransformComponent>
+					</util:TransformComponent>
 				</sm:component>
 			</sm:activationSpec>
 
 			<sm:activationSpec componentName="receiver"
-				service="foo:receiver" endpoint="receiver">
+			                   service="foo:receiver" 
+			                   endpoint="receiver">
 				<sm:component>
-					<bean
-						class="org.apache.servicemix.tck.ReceiverComponent" />
+					<bean class="org.apache.servicemix.tck.ReceiverComponent" />
 				</sm:component>
 			</sm:activationSpec>
 		</sm:activationSpecs>



Mime
View raw message