Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

New example for using SQL component

git-svn-id: https://svn.apache.org/repos/asf/camel/trunk@1435061 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit 0f301e4f007a6345a5de179373af4f9f9def6999 1 parent f05bf4b
@davsclaus davsclaus authored
View
4 apache-camel/pom.xml
@@ -638,6 +638,10 @@
<groupId>org.apache.camel</groupId>
<artifactId>camel-example-spring-xquery</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-example-sql</artifactId>
+ </dependency>
<dependency>
View
6 examples/camel-example-sql/pom.xml
@@ -33,6 +33,8 @@
<properties>
<camel.osgi.export.pkg>org.apache.camel.example.sql.*</camel.osgi.export.pkg>
+ <!-- dynamic import for the Derby JDBC driver -->
+ <camel.osgi.dynamic>*</camel.osgi.dynamic>
</properties>
<dependencies>
@@ -57,10 +59,6 @@
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
</dependency>
- <dependency>
- <groupId>org.apache.derby</groupId>
- <artifactId>derby</artifactId>
- </dependency>
<!-- logging -->
<dependency>
View
30 examples/camel-example-sql/src/main/resources/features.xml
@@ -0,0 +1,30 @@
+<?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.
+-->
+<features>
+ <repository>mvn:org.apache.camel.karaf/apache-camel/${project.version}/xml/features</repository>
+
+ <feature name="camel-example-sql" version="${project.version}">
+ <feature version="${project.version}">camel</feature>
+ <feature version="${project.version}">camel-spring</feature>
+ <feature version="${project.version}">camel-sql</feature>
+ <bundle>mvn:org.apache.derby/derby/${derby-version}</bundle>
+ <bundle>mvn:commons-dbcp/commons-dbcp/${commons-dbcp-bundle-version}</bundle>
+ <bundle>mvn:org.apache.camel/camel-example-sql/${project.version}</bundle>
+ </feature>
+
+</features>
View
5 parent/pom.xml
@@ -1265,6 +1265,11 @@
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
+ <artifactId>camel-example-sql</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
<artifactId>camel-example-tracer</artifactId>
<version>${project.version}</version>
</dependency>
Please sign in to comment.
Something went wrong with that request. Please try again.