From fc441c5bc56cff64051ad16b8fd750abef7f5fdd Mon Sep 17 00:00:00 2001 From: Claus Ibsen Date: Fri, 18 Jan 2013 10:53:30 +0000 Subject: [PATCH] New example for using SQL component git-svn-id: https://svn.apache.org/repos/asf/camel/trunk@1435080 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/resources/META-INF/spring/camel-context.xml | 4 ++++ examples/camel-example-sql/src/main/resources/sql.properties | 3 +++ 2 files changed, 7 insertions(+) diff --git a/examples/camel-example-sql/src/main/resources/META-INF/spring/camel-context.xml b/examples/camel-example-sql/src/main/resources/META-INF/spring/camel-context.xml index a40309b11d2..5ec46945691 100644 --- a/examples/camel-example-sql/src/main/resources/META-INF/spring/camel-context.xml +++ b/examples/camel-example-sql/src/main/resources/META-INF/spring/camel-context.xml @@ -21,6 +21,7 @@ http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> + @@ -39,7 +40,9 @@ + + @@ -68,5 +71,6 @@ + diff --git a/examples/camel-example-sql/src/main/resources/sql.properties b/examples/camel-example-sql/src/main/resources/sql.properties index 978115bc7e0..c19db08b464 100644 --- a/examples/camel-example-sql/src/main/resources/sql.properties +++ b/examples/camel-example-sql/src/main/resources/sql.properties @@ -15,6 +15,7 @@ ## limitations under the License. ## ------------------------------------------------------------------------ +## START SNIPPET: e1 ## sql that insert new orders sql.insertOrder=insert into orders (id, item, amount, description, processed) values (:#id, :#item, :#amount, :#description, false) @@ -23,3 +24,5 @@ sql.selectOrder=select * from orders where processed = false ## sql that update the order as being processed sql.markOrder=update orders set processed = true where id = :#id + +## END SNIPPET: e1