You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2013/02/13 07:39:28 UTC

svn commit: r1445480 - in /camel/trunk/examples/camel-example-spring-xquery/src/main/resources: META-INF/spring/camelContext.xml myTransform.xquery

Author: davsclaus
Date: Wed Feb 13 06:39:28 2013
New Revision: 1445480

URL: http://svn.apache.org/r1445480
Log:
Fixed example

Modified:
    camel/trunk/examples/camel-example-spring-xquery/src/main/resources/META-INF/spring/camelContext.xml
    camel/trunk/examples/camel-example-spring-xquery/src/main/resources/myTransform.xquery

Modified: camel/trunk/examples/camel-example-spring-xquery/src/main/resources/META-INF/spring/camelContext.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-spring-xquery/src/main/resources/META-INF/spring/camelContext.xml?rev=1445480&r1=1445479&r2=1445480&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-spring-xquery/src/main/resources/META-INF/spring/camelContext.xml (original)
+++ camel/trunk/examples/camel-example-spring-xquery/src/main/resources/META-INF/spring/camelContext.xml Wed Feb 13 06:39:28 2013
@@ -28,6 +28,7 @@
     <!-- lets parse files, transform them with XQuery and send them to JMS -->
     <route>
       <from uri="file:src/data?noop=true"/>
+      <log message="Transforming input file ${header.CamelFileName}"/>
       <to uri="xquery:myTransform.xquery"/>
       <to uri="jms:MyQueue"/>
     </route>
@@ -35,6 +36,7 @@
     <!-- now lets write messages from the queue to a directory -->
     <route>
       <from uri="jms:MyQueue"/>
+      <log message="Writing output file ${header.CamelFileName}"/>
       <to uri="file:target/outputFiles"/>
     </route>
 

Modified: camel/trunk/examples/camel-example-spring-xquery/src/main/resources/myTransform.xquery
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-spring-xquery/src/main/resources/myTransform.xquery?rev=1445480&r1=1445479&r2=1445480&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-spring-xquery/src/main/resources/myTransform.xquery (original)
+++ camel/trunk/examples/camel-example-spring-xquery/src/main/resources/myTransform.xquery Wed Feb 13 06:39:28 2013
@@ -1,19 +1,3 @@
-<!--
-  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.
--->
 <employee id="{person/@user}">
  <name>{/person/firstName} {/person/lastName}</name>
  <location>{/person/city}</location>