camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [5/5] git commit: CAMEL-6488: camel-netty-http. Added example for blueprint.
Date Wed, 26 Jun 2013 10:44:00 GMT
CAMEL-6488: camel-netty-http. Added example for blueprint.


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

Branch: refs/heads/master
Commit: b60b6cc4fd077eca18573929732cff608c91452f
Parents: d7498cd
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Wed Jun 26 12:43:47 2013 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Wed Jun 26 12:43:47 2013 +0200

----------------------------------------------------------------------
 examples/camel-example-netty-http/README.txt    | 55 ++++++++++++++++++++
 examples/camel-example-netty-http/pom.xml       |  2 +-
 .../OSGI-INF/blueprint/http-server.xml          |  1 -
 parent/pom.xml                                  |  5 ++
 4 files changed, 61 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/b60b6cc4/examples/camel-example-netty-http/README.txt
----------------------------------------------------------------------
diff --git a/examples/camel-example-netty-http/README.txt b/examples/camel-example-netty-http/README.txt
new file mode 100644
index 0000000..616c26b
--- /dev/null
+++ b/examples/camel-example-netty-http/README.txt
@@ -0,0 +1,55 @@
+Camel Netty HTTP Server Example
+===============================
+
+This example shows how to use a shared Netty HTTP Server in an OSGi environment.
+
+There is 3 modules in this example
+
+* shared-netty-http-server - The Shared Netty HTTP server that the other Camel applications
uses.
+* myapp-one - A Camel application that reuses the shared Netty HTTP server
+* myapp-two - A Camel application that reuses the shared Netty HTTP server
+
+You will need to compile and prepared this example first:
+  mvn install
+
+This example requires running in Apache Karaf / ServiceMix
+
+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-netty-http
+
+Then you can install the shared Netty HTTP server which by default runs on port 8888.
+The port number can be changed by editing the following source file:
+
+  shared-netty-http-server/src/main/resources/OSGI-INF/blueprint/http-server.xml
+
+In the Apache Karaf / ServiceMix shell type:
+
+  osgi:install -s mvn:mvn:org.apache.camel/camel-example-netty-http-shared/2.12.0
+
+Then you can install the Camel applications:
+
+  osgi:install -s mvn:org.apache.camel/camel-example-netty-myapp-one/2.12.0
+  osgi:install -s mvn:org.apache.camel/camel-example-netty-myapp-two/2.12.0
+
+From a web browser you can then try the example by accessing the followign URLs:
+
+  http://localhost:8888/one
+  http://localhost:8888/two
+
+This example is documented at
+  http://camel.apache.org/netty-http-server-example.html
+
+If you hit any problems please talk to us on the Camel Forums
+  http://camel.apache.org/discussion-forums.html
+
+Please help us make Apache Camel better - we appreciate any feedback you
+may have.  Enjoy!
+
+------------------------
+The Camel riders!

http://git-wip-us.apache.org/repos/asf/camel/blob/b60b6cc4/examples/camel-example-netty-http/pom.xml
----------------------------------------------------------------------
diff --git a/examples/camel-example-netty-http/pom.xml b/examples/camel-example-netty-http/pom.xml
index a1b9aa5..b9efe3b 100644
--- a/examples/camel-example-netty-http/pom.xml
+++ b/examples/camel-example-netty-http/pom.xml
@@ -26,7 +26,7 @@
 
     <artifactId>camel-example-netty-http</artifactId>
     <packaging>pom</packaging>
-    <name>Camel :: Example :: Netty Shared HTTP Server</name>
+    <name>Camel :: Example :: Netty HTTP</name>
     <description>An example showing how to use a shared Netty HTTP server with multiple
Camel applications in OSGi container</description>
 
     <properties>

http://git-wip-us.apache.org/repos/asf/camel/blob/b60b6cc4/examples/camel-example-netty-http/shared-netty-http-server/src/main/resources/OSGI-INF/blueprint/http-server.xml
----------------------------------------------------------------------
diff --git a/examples/camel-example-netty-http/shared-netty-http-server/src/main/resources/OSGI-INF/blueprint/http-server.xml
b/examples/camel-example-netty-http/shared-netty-http-server/src/main/resources/OSGI-INF/blueprint/http-server.xml
index ba8f0631..7e4e6d2 100755
--- a/examples/camel-example-netty-http/shared-netty-http-server/src/main/resources/OSGI-INF/blueprint/http-server.xml
+++ b/examples/camel-example-netty-http/shared-netty-http-server/src/main/resources/OSGI-INF/blueprint/http-server.xml
@@ -27,7 +27,6 @@
     <property name="host" value="0.0.0.0"/>
     <!-- additional options -->
     <property name="backlog" value="50"/>
-    <property name="compression" value="true"/>
   </bean>
 
   <!-- the netty http server -->

http://git-wip-us.apache.org/repos/asf/camel/blob/b60b6cc4/parent/pom.xml
----------------------------------------------------------------------
diff --git a/parent/pom.xml b/parent/pom.xml
index 9fc13aa..3b5e6d9 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -1274,6 +1274,11 @@
       </dependency>
       <dependency>
         <groupId>org.apache.camel</groupId>
+        <artifactId>camel-example-netty-http</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.camel</groupId>
         <artifactId>camel-example-jms-file</artifactId>
         <version>${project.version}</version>
       </dependency>


Mime
View raw message