You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by lh...@apache.org on 2008/06/13 01:57:19 UTC

svn commit: r667297 [2/2] - in /servicemix/smx3/trunk: ./ deployables/serviceengines/ deployables/serviceengines/servicemix-validation/ deployables/serviceengines/servicemix-validation/src/ deployables/serviceengines/servicemix-validation/src/main/ dep...

Added: servicemix/smx3/trunk/deployables/serviceengines/servicemix-validation/src/test/resources/spring.xml
URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/deployables/serviceengines/servicemix-validation/src/test/resources/spring.xml?rev=667297&view=auto
==============================================================================
--- servicemix/smx3/trunk/deployables/serviceengines/servicemix-validation/src/test/resources/spring.xml (added)
+++ servicemix/smx3/trunk/deployables/serviceengines/servicemix-validation/src/test/resources/spring.xml Thu Jun 12 16:57:18 2008
@@ -0,0 +1,66 @@
+<?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 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.
+
+-->
+<beans xmlns:sm="http://servicemix.apache.org/config/1.0" 
+	   xmlns:validation="http://servicemix.apache.org/validation/1.0"
+       xmlns:test="urn:test">
+
+  <sm:container id="jbi" embedded="true" createMBeanServer="false">
+    
+    <sm:activationSpecs>
+
+      <sm:activationSpec>
+      	<sm:component>
+            <validation:component>
+            	<validation:endpoints>
+            	
+            		<validation:endpoint service="test:service" 
+            							 endpoint="endpoint" 
+            							 schemaResource="classpath:schema.xsd"
+            							 handlingErrorMethod="FAULT_FLOW"/>
+            							 
+					<validation:endpoint service="test:service2" 
+            							 endpoint="endpoint" 
+            							 schemaResource="classpath:schema.xsd"
+            							 handlingErrorMethod="FAULT_JBI"/>
+            							 
+					<validation:endpoint service="test:service3" 
+            							 endpoint="endpoint" 
+            							 schemaResource="classpath:schema.xsd"
+            							 handlingErrorMethod="FAULT_FLOW">
+            							 
+						<property name="errorHandlerFactory">
+      						<bean class="org.apache.servicemix.validation.handler.MessageAggregatingErrorHandlerFactory">
+      							<property name="rootPath" value="Fault/payload/messages"/>
+    							<property name="namespace" value="http://www.servicemix.org/fault"/>
+    							<property name="includeStackTraces" value="false"/>
+      						</bean>
+    					</property>
+    					
+					</validation:endpoint>
+					
+            	</validation:endpoints>
+            </validation:component>
+        </sm:component>
+      </sm:activationSpec>
+
+    </sm:activationSpecs>
+  </sm:container>
+
+</beans>

Propchange: servicemix/smx3/trunk/deployables/serviceengines/servicemix-validation/src/test/resources/spring.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: servicemix/smx3/trunk/distributions/apache-servicemix/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/distributions/apache-servicemix/pom.xml?rev=667297&r1=667296&r2=667297&view=diff
==============================================================================
--- servicemix/smx3/trunk/distributions/apache-servicemix/pom.xml (original)
+++ servicemix/smx3/trunk/distributions/apache-servicemix/pom.xml Thu Jun 12 16:57:18 2008
@@ -102,6 +102,10 @@
     </dependency>
     <dependency>
       <groupId>org.apache.servicemix</groupId>
+      <artifactId>servicemix-validation</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.servicemix</groupId>
       <artifactId>servicemix-file</artifactId>
     </dependency>
     <dependency>
@@ -370,6 +374,13 @@
                 </artifactItem>
                 <artifactItem>
                   <groupId>org.apache.servicemix</groupId>
+                  <artifactId>servicemix-validation</artifactId>
+                  <version>${servicemix-version}</version>
+                  <classifier>installer</classifier>
+                  <type>zip</type>
+                </artifactItem>
+                <artifactItem>
+                  <groupId>org.apache.servicemix</groupId>
                   <artifactId>servicemix-file</artifactId>
                   <version>${servicemix-version}</version>
                   <classifier>installer</classifier>

Modified: servicemix/smx3/trunk/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/pom.xml?rev=667297&r1=667296&r2=667297&view=diff
==============================================================================
--- servicemix/smx3/trunk/pom.xml (original)
+++ servicemix/smx3/trunk/pom.xml Thu Jun 12 16:57:18 2008
@@ -808,6 +808,11 @@
             </dependency>
             <dependency>
                 <groupId>org.apache.servicemix</groupId>
+                <artifactId>servicemix-validation</artifactId>
+                <version>3.3-SNAPSHOT</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.servicemix</groupId>
                 <artifactId>servicemix-file</artifactId>
                 <version>3.3-SNAPSHOT</version>
             </dependency>