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/07/20 11:13:02 UTC

[3/4] git commit: Polished

Polished


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/85890825
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/85890825
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/85890825

Branch: refs/heads/master
Commit: 858908251f17cd36c75638ac3719e47c93e42f93
Parents: 046d749
Author: Claus Ibsen <da...@apache.org>
Authored: Sat Jul 20 08:47:09 2013 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Sat Jul 20 09:08:34 2013 +0200

----------------------------------------------------------------------
 examples/camel-example-mybatis/README.txt |  2 --
 examples/camel-example-sql/README.txt     | 32 ++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/85890825/examples/camel-example-mybatis/README.txt
----------------------------------------------------------------------
diff --git a/examples/camel-example-mybatis/README.txt b/examples/camel-example-mybatis/README.txt
index 7a24847..a0a3c62 100644
--- a/examples/camel-example-mybatis/README.txt
+++ b/examples/camel-example-mybatis/README.txt
@@ -24,8 +24,6 @@ First you need to install the following features in Karaf/ServiceMix with:
 
   features:install camel-mybatis
 
-TODO: Install this example using its own features file
-
 Then you can install the Camel example:
 
   osgi:install -s mvn:org.apache.camel/camel-example-mybatis/2.12.0

http://git-wip-us.apache.org/repos/asf/camel/blob/85890825/examples/camel-example-sql/README.txt
----------------------------------------------------------------------
diff --git a/examples/camel-example-sql/README.txt b/examples/camel-example-sql/README.txt
index 0c0e652..3ea6920 100644
--- a/examples/camel-example-sql/README.txt
+++ b/examples/camel-example-sql/README.txt
@@ -10,6 +10,8 @@ The second route pickup the newly inserted rows from the table,
 process the row(s), and mark the row(s) as processed when done;
 to avoid picking up the same rows again.
 
+Standalone
+----------
 You will need to compile this example first:
   mvn compile
 
@@ -22,6 +24,36 @@ This example uses Spring to setup and configure the database,
 as well the CamelContext. You can see this in the following file:
 In the src/main/resources/META-INF/spring/camel-context.xml
 
+Apache Karaf / ServiceMix
+-------------------------
+You will need to compile this example first:
+  mvn compile
+
+To install Apache Camel in Karaf you type in the shell (we use version 2.12.0):
+
+  features:chooseurl camel 2.12.0
+  features:install camel
+
+First you need to install the following features in Karaf/ServiceMix with:
+
+  features:install camel-sql
+
+Then you need to install JDBC connection pool and the Derby Database:
+
+  osgi:install -s mvn:commons-pool/commons-pool/1.6
+  osgi:install -s mvn:commons-dbcp/commons-dbcp/1.4
+  osgi:install -s mvn:org.apache.derby/derby/10.10.1.1
+
+Then you can install the Camel example:
+
+  osgi:install -s mvn:org.apache.camel/camel-example-sql/2.12.0
+
+And you can see the application running by tailing the logs
+
+  log:tail
+
+And you can use ctrl + c to stop tailing the log.
+
 This example is documented at
   http://camel.apache.org/sql-example.html