Author: buildbot
Date: Wed Jun 26 11:18:13 2013
New Revision: 867501

Log:
Production update by buildbot for camel

Added:
    websites/production/camel/content/netty-http-server-example.html
Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/camel-2120-release.html
    websites/production/camel/content/examples.html

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/camel-2120-release.html
==============================================================================
--- websites/production/camel/content/camel-2120-release.html (original)
+++ websites/production/camel/content/camel-2120-release.html Wed Jun 26 
11:18:13 2013
@@ -119,6 +119,9 @@
 
 <h3><a shape="rect" name="Camel2.12.0Release-NewExamples"></a>New <a 
shape="rect" href="examples.html" title="Examples">Examples</a></h3>
 
+<ul><li><a shape="rect" href="netty-http-server-example.html" title="Netty 
HTTP Server Example">Netty HTTP Server Example</a></li></ul>
+
+
 <h3><a shape="rect" name="Camel2.12.0Release-NewTutorials"></a>New <a 
shape="rect" href="tutorials.html" title="Tutorials">Tutorials</a></h3>
 
 <h2><a shape="rect" name="Camel2.12.0Release-APIbreaking"></a>API breaking</h2>
@@ -126,7 +129,7 @@
 <h2><a shape="rect" name="Camel2.12.0Release-KnownIssues"></a>Known Issues</h2>
 
 <h2><a shape="rect" 
name="Camel2.12.0Release-DependencyUpgrades"></a>Dependency Upgrades</h2>
-<ul><li>Bouncy Castle 1.47 to 1.48</li><li>Commons Httpclient 4.2.3 to 
4.2.5</li><li>Commons Httpcore 4.2.3 to 4.2.4</li><li>CXF 2.7.4 to 
2.7.5</li><li>Ehcache 2.5.2 to 2.7.0</li><li>HAPI 2.0 to 2.1</li><li>Groovy 
2.1.3 to 2.1.4</li><li>Hawtdispatch 1.13 to 1.17</li><li>Hibernate Validator 
4.1.0 to 4.3.1</li><li>Jackson 2.1.4 to 2.2.2</li><li>JRuby 1.7.2 to 
1.7.3</li><li>Krati 0.4.8 to 0.4.9</li><li>Leveldbjni 1.6 to 1.7</li><li>MQTT 
Client 1.4 to 1.5</li><li>Netty 3.6.5 to 3.6.6</li><li>OpenJPA 2.2.1 to 
2.2.2</li><li>Saxon 9.4.0.4 to 9.4.0.7</li><li>Shiro 1.2.1 to 
1.2.2</li><li>Spring 3.1.4.RELEASE to 3.2.3.RELEASE</li><li>Spring Data Redis 
1.0.3.RELEASE to 1.0.4.RELEASE</li><li>Spring Security 3.1.3.RELEASE to 
3.1.4.RELEASE</li><li>Spring Web Services 2.1.2 to 2.1.3</li><li>TestNG 6.8 to 
6.8.5</li><li>XStream 1.4.3 to 1.4.4</li></ul>
+<ul><li>Bouncy Castle 1.47 to 1.48</li><li>Commons Httpclient 4.2.3 to 
4.2.5</li><li>Commons Httpcore 4.2.3 to 4.2.4</li><li>CXF 2.7.4 to 
2.7.5</li><li>Ehcache 2.5.2 to 2.7.0</li><li>HAPI 2.0 to 2.1</li><li>Groovy 
2.1.3 to 2.1.5</li><li>Hawtdispatch 1.13 to 1.17</li><li>Hibernate Validator 
4.1.0 to 4.3.1</li><li>Jackson 2.1.4 to 2.2.2</li><li>JRuby 1.7.2 to 
1.7.4</li><li>Krati 0.4.8 to 0.4.9</li><li>Leveldbjni 1.6 to 1.7</li><li>MQTT 
Client 1.4 to 1.5</li><li>Netty 3.6.5 to 3.6.6</li><li>OpenJPA 2.2.1 to 
2.2.2</li><li>Saxon 9.4.0.4 to 9.4.0.7</li><li>Shiro 1.2.1 to 
1.2.2</li><li>Spring 3.1.4.RELEASE to 3.2.3.RELEASE</li><li>Spring Data Redis 
1.0.3.RELEASE to 1.0.4.RELEASE</li><li>Spring Security 3.1.3.RELEASE to 
3.1.4.RELEASE</li><li>Spring Web Services 2.1.2 to 2.1.3</li><li>TestNG 6.8 to 
6.8.5</li><li>XStream 1.4.3 to 1.4.4</li></ul>
 
 
 <h2><a shape="rect" name="Camel2.12.0Release-Internalchanges"></a>Internal 
changes</h2>

Modified: websites/production/camel/content/examples.html
==============================================================================
--- websites/production/camel/content/examples.html (original)
+++ websites/production/camel/content/examples.html Wed Jun 26 11:18:13 2013
@@ -91,7 +91,7 @@
 
 <h3><a shape="rect" name="Examples-Examples"></a>Examples</h3>
 
-<ul><li><a shape="rect" href="activemq-camel-tomcat.html" title="ActiveMQ 
Camel Tomcat">ActiveMQ Camel Tomcat</a> example shows how to embed Apache 
ActiveMQ and Camel in a web application running on Apache Tomcat.</li><li><a 
shape="rect" href="aggregate-example.html" title="Aggregate Example">Aggregate 
Example</a> shows the overhauled <a shape="rect" href="aggregator2.html" 
title="Aggregator2">Aggregator</a> EIP with persistent storage, which are part 
of Camel 2.3.</li><li><a shape="rect" href="bam-example.html" title="BAM 
Example">BAM Example</a> shows how to use Camel as a <a shape="rect" 
href="bam.html" title="BAM">BAM (Business Activity Monitoring)</a> framework, 
to monitor your business transactions.</li><li><a shape="rect" 
href="cafe-example.html" title="Cafe Example">Cafe Example</a> shows how to use 
Camel to implement a Cafe shop use case.</li><li><a shape="rect" 
href="console-example.html" title="Console Example">Console Example</a> shows 
how to get stared with Came
 l using to read input from the console.</li><li><a shape="rect" 
href="cxf-example.html" title="CXF Example">CXF Example</a> shows how to use 
Camel as the CXF services router, which consumes the request of a CXF client 
then passes the request to a CXF-based web service.</li><li><a shape="rect" 
href="cxf-example-osgi-blueprint.html" title="CXF Example OSGi Blueprint">CXF 
Example OSGi Blueprint</a> shows how to use the camel-cxf consumer component in 
an OSGI environment using OSGi Blueprint with the OSGI HTTP service.</li><li><a 
shape="rect" href="cxf-example-osgi.html" title="CXF Example OSGi">CXF Example 
OSGi</a> shows how to use the camel-cxf consumer component in an OSGI 
environment using Spring-DM with the OSGI HTTP service.</li><li><a shape="rect" 
href="cxf-proxy-example.html" title="CXF Proxy Example">CXF Proxy Example</a> 
shows how to use Camel to proxy a web service using <a shape="rect" 
href="cxf.html" title="CXF">CXF</a>.</li><li><a shape="rect" 
href="cxf-tomcat-exam
 ple.html" title="CXF Tomcat Example">CXF Tomcat Example</a> shows how to use 
Camel to expose a code-first web service using <a shape="rect" href="cxf.html" 
title="CXF">CXF</a> as a web application to be deployed in Apache 
Tomcat.</li><li><a shape="rect" href="etl-example.html" title="ETL Example">ETL 
Example</a> shows how to use Camel as an <a shape="rect" class="external-link" 
href="http://en.wikipedia.org/wiki/Extract,_transform,_load"; 
rel="nofollow">Extract Transform Load (ETL)</a> tool</li><li><a shape="rect" 
href="ftp-example.html" title="FTP Example">FTP Example</a> shows how to use 
Camel to upload or download files to/from an existing FTP server.</li><li><a 
shape="rect" href="guice-jms-example.html" title="Guice JMS Example">Guice JMS 
Example</a> shows how to use <a shape="rect" href="guice.html" 
title="Guice">Guice</a> as the Dependency Injection framework to create some <a 
shape="rect" href="jms.html" title="JMS">JMS</a> base routes using just Java 
code and a proper
 ties file</li><li><a shape="rect" href="hibernate-example.html" 
title="Hibernate Example">Hibernate Example</a> shows how to work with <a 
shape="rect" href="hibernate.html" title="Hibernate">Hibernate</a> to exchange 
data using a shared database table.</li><li><a shape="rect" 
href="jmx-component-example.html" title="JMX Component Example">JMX Component 
Example</a> shows how to use the camel-jmx component.</li><li><a shape="rect" 
href="loadbalancing-mina-example.html" title="LoadBalancing Mina 
Example">LoadBalancing Mina Example</a> shows how to use the <a shape="rect" 
href="load-balancer.html" title="Load Balancer">Load Balancer</a> EIP to 
balance communication with remote servers using <a shape="rect" 
href="mina.html" title="MINA">MINA</a>.</li><li><a shape="rect" 
href="loan-broker-example.html" title="Loan Broker Example">Loan Broker 
Example</a> shows how to use Camel to implement the classical <a shape="rect" 
class="external-link" href="http://http://www.enterpriseintegra
 tionpatterns.com/ComposedMessagingExample.html" rel="nofollow">EIP composed 
messaging sample </a>.</li><li><a shape="rect" href="management-example.html" 
title="Management Example">Management Example</a> shows how to use <a 
shape="rect" href="camel-jmx.html" title="Camel JMX">JMX</a> in Camel to manage 
a running Camel application.</li><li><a shape="rect" 
href="pojo-messaging-example.html" title="POJO Messaging Example">POJO 
Messaging Example</a> shows how to use annotations to produce, consume or route 
messages to Camel endpoints without using any DSL.</li><li><a shape="rect" 
href="route-throttling-example.html" title="Route Throttling Example">Route 
Throttling Example</a> shows how to use <a shape="rect" href="routepolicy.html" 
title="RoutePolicy">RoutePolicy</a> and <a shape="rect" href="camel-jmx.html" 
title="Camel JMX">JMX</a> in Camel to dynamically throttle routes.</li><li><a 
shape="rect" href="servlet-tomcat-example.html" title="Servlet Tomcat 
Example">Servlet Tomcat 
 Example</a> shows how to use Camel to route messages using servlets running in 
any web container such as Apache Tomcat.</li><li><a shape="rect" 
href="servlet-tomcat-no-spring-example.html" title="Servlet Tomcat No Spring 
Example">Servlet Tomcat No Spring Example</a> shows how to use Camel to route 
messages using servlets running any web container such as Apache Tomcat without 
using the Spring Framework.</li><li><a shape="rect" href="simple-jira-bot.html" 
title="Simple Jira Bot">Simple Jira Bot</a> shows how to use the camel-rss feed 
to send updates to an irc channel using camel-irc.</li><li><a shape="rect" 
href="spring-example.html" title="Spring Example">Spring Example</a> shows how 
to work with the Spring example using a Spring ApplicationContext to configure 
Camel with <a shape="rect" href="dsl.html" title="DSL">Java routing 
rules</a></li><li><a shape="rect" href="spring-java-config-example.html" 
title="Spring Java Config Example">Spring Java Config Example</a> shows how 
 to use the <a shape="rect" class="external-link" 
href="http://www.springsource.org/javaconfig"; rel="nofollow">Spring java 
config</a> to configure the Camel with <a shape="rect" href="dsl.html" 
title="DSL">Java routing rules</a></li><li><a shape="rect" 
href="spring-security-example.html" title="Spring Security Example">Spring 
Security Example</a> shows how to implement a basic http authentication and 
role based authorization within a camel route by leverage the <a shape="rect" 
href="spring-security.html" title="Spring Security">camel-spring-security 
component</a>.</li><li><a shape="rect" href="spring-ws-example.html" 
title="Spring WS Example">Spring Web Services Example</a> shows how to expose a 
SOAP-based web service using Camel and Spring Web Services.</li><li><a 
shape="rect" href="spring-xquery-example.html" title="Spring XQuery 
Example">Spring XQuery Example</a> shows how to work with the Spring example 
using a Spring ApplicationContext to configure Camel</li><li><a shape
 ="rect" href="sql-example.html" title="SQL Example">SQL Example</a> shows how 
to work with <a shape="rect" href="sql-component.html" title="SQL 
Component">SQL</a> to exchange data using a shared database table.</li><li><a 
shape="rect" href="tracer-example.html" title="Tracer Example">Tracer 
Example</a> shows how to use <a shape="rect" href="tracer.html" 
title="Tracer">Tracer</a> in Camel to trace how <a shape="rect" 
href="exchange.html" title="Exchange">Exchange</a> is routed.</li><li><a 
shape="rect" href="twitter-websocket-example.html" title="Twitter Websocket 
Example">Twitter Websocket Example</a> demonstrates how to poll a constant feed 
of twitter searches and publish results in real time using web socket to a web 
page.</li></ul>
+<ul><li><a shape="rect" href="activemq-camel-tomcat.html" title="ActiveMQ 
Camel Tomcat">ActiveMQ Camel Tomcat</a> example shows how to embed Apache 
ActiveMQ and Camel in a web application running on Apache Tomcat.</li><li><a 
shape="rect" href="aggregate-example.html" title="Aggregate Example">Aggregate 
Example</a> shows the overhauled <a shape="rect" href="aggregator2.html" 
title="Aggregator2">Aggregator</a> EIP with persistent storage, which are part 
of Camel 2.3.</li><li><a shape="rect" href="bam-example.html" title="BAM 
Example">BAM Example</a> shows how to use Camel as a <a shape="rect" 
href="bam.html" title="BAM">BAM (Business Activity Monitoring)</a> framework, 
to monitor your business transactions.</li><li><a shape="rect" 
href="cafe-example.html" title="Cafe Example">Cafe Example</a> shows how to use 
Camel to implement a Cafe shop use case.</li><li><a shape="rect" 
href="console-example.html" title="Console Example">Console Example</a> shows 
how to get stared with Came
 l using to read input from the console.</li><li><a shape="rect" 
href="cxf-example.html" title="CXF Example">CXF Example</a> shows how to use 
Camel as the CXF services router, which consumes the request of a CXF client 
then passes the request to a CXF-based web service.</li><li><a shape="rect" 
href="cxf-example-osgi-blueprint.html" title="CXF Example OSGi Blueprint">CXF 
Example OSGi Blueprint</a> shows how to use the camel-cxf consumer component in 
an OSGI environment using OSGi Blueprint with the OSGI HTTP service.</li><li><a 
shape="rect" href="cxf-example-osgi.html" title="CXF Example OSGi">CXF Example 
OSGi</a> shows how to use the camel-cxf consumer component in an OSGI 
environment using Spring-DM with the OSGI HTTP service.</li><li><a shape="rect" 
href="cxf-proxy-example.html" title="CXF Proxy Example">CXF Proxy Example</a> 
shows how to use Camel to proxy a web service using <a shape="rect" 
href="cxf.html" title="CXF">CXF</a>.</li><li><a shape="rect" 
href="cxf-tomcat-exam
 ple.html" title="CXF Tomcat Example">CXF Tomcat Example</a> shows how to use 
Camel to expose a code-first web service using <a shape="rect" href="cxf.html" 
title="CXF">CXF</a> as a web application to be deployed in Apache 
Tomcat.</li><li><a shape="rect" href="etl-example.html" title="ETL Example">ETL 
Example</a> shows how to use Camel as an <a shape="rect" class="external-link" 
href="http://en.wikipedia.org/wiki/Extract,_transform,_load"; 
rel="nofollow">Extract Transform Load (ETL)</a> tool</li><li><a shape="rect" 
href="ftp-example.html" title="FTP Example">FTP Example</a> shows how to use 
Camel to upload or download files to/from an existing FTP server.</li><li><a 
shape="rect" href="guice-jms-example.html" title="Guice JMS Example">Guice JMS 
Example</a> shows how to use <a shape="rect" href="guice.html" 
title="Guice">Guice</a> as the Dependency Injection framework to create some <a 
shape="rect" href="jms.html" title="JMS">JMS</a> base routes using just Java 
code and a proper
 ties file</li><li><a shape="rect" href="hibernate-example.html" 
title="Hibernate Example">Hibernate Example</a> shows how to work with <a 
shape="rect" href="hibernate.html" title="Hibernate">Hibernate</a> to exchange 
data using a shared database table.</li><li><a shape="rect" 
href="jmx-component-example.html" title="JMX Component Example">JMX Component 
Example</a> shows how to use the camel-jmx component.</li><li><a shape="rect" 
href="loadbalancing-mina-example.html" title="LoadBalancing Mina 
Example">LoadBalancing Mina Example</a> shows how to use the <a shape="rect" 
href="load-balancer.html" title="Load Balancer">Load Balancer</a> EIP to 
balance communication with remote servers using <a shape="rect" 
href="mina.html" title="MINA">MINA</a>.</li><li><a shape="rect" 
href="loan-broker-example.html" title="Loan Broker Example">Loan Broker 
Example</a> shows how to use Camel to implement the classical <a shape="rect" 
class="external-link" href="http://http://www.enterpriseintegra
 tionpatterns.com/ComposedMessagingExample.html" rel="nofollow">EIP composed 
messaging sample </a>.</li><li><a shape="rect" href="management-example.html" 
title="Management Example">Management Example</a> shows how to use <a 
shape="rect" href="camel-jmx.html" title="Camel JMX">JMX</a> in Camel to manage 
a running Camel application.</li><li><a shape="rect" 
href="netty-http-server-example.html" title="Netty HTTP Server Example">Netty 
HTTP Server Example</a> shows how to use <a shape="rect" href="netty-http.html" 
title="Netty HTTP">Netty HTTP</a> as a shared HTTP server with multiple Camel 
applications in OSGi container such as Karaf / ServiceMix.</li><li><a 
shape="rect" href="pojo-messaging-example.html" title="POJO Messaging 
Example">POJO Messaging Example</a> shows how to use annotations to produce, 
consume or route messages to Camel endpoints without using any DSL.</li><li><a 
shape="rect" href="route-throttling-example.html" title="Route Throttling 
Example">Route Throttling 
 Example</a> shows how to use <a shape="rect" href="routepolicy.html" 
title="RoutePolicy">RoutePolicy</a> and <a shape="rect" href="camel-jmx.html" 
title="Camel JMX">JMX</a> in Camel to dynamically throttle routes.</li><li><a 
shape="rect" href="servlet-tomcat-example.html" title="Servlet Tomcat 
Example">Servlet Tomcat Example</a> shows how to use Camel to route messages 
using servlets running in any web container such as Apache Tomcat.</li><li><a 
shape="rect" href="servlet-tomcat-no-spring-example.html" title="Servlet Tomcat 
No Spring Example">Servlet Tomcat No Spring Example</a> shows how to use Camel 
to route messages using servlets running any web container such as Apache 
Tomcat without using the Spring Framework.</li><li><a shape="rect" 
href="simple-jira-bot.html" title="Simple Jira Bot">Simple Jira Bot</a> shows 
how to use the camel-rss feed to send updates to an irc channel using 
camel-irc.</li><li><a shape="rect" href="spring-example.html" title="Spring 
Example">Spring
  Example</a> shows how to work with the Spring example using a Spring 
ApplicationContext to configure Camel with <a shape="rect" href="dsl.html" 
title="DSL">Java routing rules</a></li><li><a shape="rect" 
href="spring-java-config-example.html" title="Spring Java Config 
Example">Spring Java Config Example</a> shows how to use the <a shape="rect" 
class="external-link" href="http://www.springsource.org/javaconfig"; 
rel="nofollow">Spring java config</a> to configure the Camel with <a 
shape="rect" href="dsl.html" title="DSL">Java routing rules</a></li><li><a 
shape="rect" href="spring-security-example.html" title="Spring Security 
Example">Spring Security Example</a> shows how to implement a basic http 
authentication and role based authorization within a camel route by leverage 
the <a shape="rect" href="spring-security.html" title="Spring 
Security">camel-spring-security component</a>.</li><li><a shape="rect" 
href="spring-ws-example.html" title="Spring WS Example">Spring Web Services 
 Example</a> shows how to expose a SOAP-based web service using Camel and 
Spring Web Services.</li><li><a shape="rect" href="spring-xquery-example.html" 
title="Spring XQuery Example">Spring XQuery Example</a> shows how to work with 
the Spring example using a Spring ApplicationContext to configure 
Camel</li><li><a shape="rect" href="sql-example.html" title="SQL Example">SQL 
Example</a> shows how to work with <a shape="rect" href="sql-component.html" 
title="SQL Component">SQL</a> to exchange data using a shared database 
table.</li><li><a shape="rect" href="tracer-example.html" title="Tracer 
Example">Tracer Example</a> shows how to use <a shape="rect" href="tracer.html" 
title="Tracer">Tracer</a> in Camel to trace how <a shape="rect" 
href="exchange.html" title="Exchange">Exchange</a> is routed.</li><li><a 
shape="rect" href="twitter-websocket-example.html" title="Twitter Websocket 
Example">Twitter Websocket Example</a> demonstrates how to poll a constant feed 
of twitter searches a
 nd publish results in real time using web socket to a web page.</li></ul>
 
 
 <div class="panelMacro"><table class="tipMacro"><colgroup span="1"><col 
span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1" 
valign="top"><img align="middle" 
src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif"; 
width="16" height="16" alt="" border="0"></td><td colspan="1" 
rowspan="1"><b>More examples</b><br clear="none">See also <a shape="rect" 
href="tutorials.html" title="Tutorials">Tutorials</a> for more examples, as 
well as <a shape="rect" href="cookbook.html" 
title="Cookbook">Cookbook</a>.</td></tr></table></div>

Added: websites/production/camel/content/netty-http-server-example.html
==============================================================================
--- websites/production/camel/content/netty-http-server-example.html (added)
+++ websites/production/camel/content/netty-http-server-example.html Wed Jun 26 
11:18:13 2013
@@ -0,0 +1,322 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
+<!--
+
+    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.
+-->
+<html>
+<head>
+    <link href="http://camel.apache.org/styles/site.css"; rel="stylesheet" 
type="text/css">
+    <link href="http://camel.apache.org/styles/type-settings.css"; 
rel="stylesheet" type="text/css">
+    <script src="http://camel.apache.org/styles/prototype.js"; 
type="text/javascript"></script>
+    <script src="http://camel.apache.org/styles/rico.js"; 
type="text/javascript"></script>    
+    <script src="http://camel.apache.org/styles/site.js"; 
type="text/javascript"></script>
+
+    <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
+
+    <style type="text/css">
+      .maincontent { overflow:hidden; }
+    </style>
+    <!--[if IE]>
+    <style type="text/css">
+      .maincontent { width:100%; }
+    </style>
+    <![endif]-->
+
+
+  <link 
href='http://camel.apache.org/styles/highlighter/styles/shCoreCamel.css' 
rel='stylesheet' type='text/css' />
+  <link 
href='http://camel.apache.org/styles/highlighter/styles/shThemeCamel.css' 
rel='stylesheet' type='text/css' />
+  <script src='http://camel.apache.org/styles/highlighter/scripts/shCore.js' 
type='text/javascript'></script>
+  <script 
src='http://camel.apache.org/styles/highlighter/scripts/shBrushJava.js' 
type='text/javascript'></script>
+  <script 
src='http://camel.apache.org/styles/highlighter/scripts/shBrushXml.js' 
type='text/javascript'></script>
+  
+  <script type="text/javascript">
+  SyntaxHighlighter.defaults['toolbar'] = false;
+  SyntaxHighlighter.all();
+  </script>
+
+    <title>
+    Apache Camel: Netty HTTP Server Example
+    </title>
+</head>
+<body>
+<div class="white_box">
+<div class="header">
+  <div class="header_l">
+    <div class="header_r">
+    </div>
+  </div>
+</div>
+<div class="content">
+  <div class="content_l">
+    <div class="content_r">
+      <div>
+          <!-- Banner -->
+<div id="banner-content"><div id="asf_logo">
+       <div id="activemq_logo" style="height:108px; background:transparent 
url(banner.data/apache-camel-7.png) no-repeat scroll left top;">
+            <a shape="rect" style="float:left; 
width:310px;display:block;text-indent:-5000px;text-decoration:none;line-height:140px;
 margin-top:20px; margin-left:18px;" href="http://camel.apache.org/";>Camel</a>
+            <a shape="rect" style="float:right; 
width:180px;display:block;text-indent:-5000px;text-decoration:none;line-height:80px;
 margin-top:45px; margin-right:10px;" href="http://www.apache.org";>Apache</a>
+       </div>
+        </div></div>
+          <!-- Banner -->
+        <div class="top_red_bar">
+          <div id="site-breadcrumbs">
+                <!-- Breadcrumbs -->
+<a href="index.html">Apache Camel</a>&nbsp;&gt;&nbsp;<a 
href="documentation.html">Documentation</a>&nbsp;&gt;&nbsp;<a 
href="user-guide.html">User Guide</a>&nbsp;&gt;&nbsp;<a 
href="examples.html">Examples</a>&nbsp;&gt;&nbsp;<a 
href="netty-http-server-example.html">Netty HTTP Server Example</a>
+          </div>
+          <!-- Quicklinks -->
+<div id="site-quicklinks"><p><a shape="rect" href="download.html" 
title="Download">Download</a> | <a shape="rect" href="javadoc.html" 
title="JavaDoc">JavaDoc</a> | <a shape="rect" href="source.html" 
title="Source">Source</a> | <a shape="rect" href="discussion-forums.html" 
title="Discussion Forums">Forums</a> | <a shape="rect" href="support.html" 
title="Support">Support</a></p></div>
+          <!-- Quicklinks -->
+        </div>
+
+       <table border="0">
+       <tbody>
+        <tr>
+        <td valign="top" width="100%">
+<div class="wiki-content maincontent"><h2><a shape="rect" 
name="NettyHTTPServerExample-NettyHTTPServerExample"></a>Netty HTTP Server 
Example</h2>
+<p><b>Available as of Camel 2.12</b></p>
+
+<p>This example is located in the <tt>examples/camel-example-netty-http</tt> 
directory of the Camel distribution.<br clear="none">
+There is a <tt>README.txt</tt> file with instructions how to run it.</p>
+
+<p>If you use maven then you can easily package the example from the command 
line:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
+mvn package
+]]></script>
+</div></div>
+
+<h3><a shape="rect" name="NettyHTTPServerExample-About"></a>About</h3>
+
+<p>This example shows how to use a shared <a shape="rect" 
href="netty-http.html" title="Netty HTTP">Netty HTTP</a> Server in an OSGi 
environment.</p>
+
+<p>There is 3 modules in this example</p>
+
+<ul><li>shared-netty-http-server - The Shared Netty HTTP server that the other 
Camel applications uses.</li><li>myapp-one - A Camel application that reuses 
the shared Netty HTTP server</li><li>myapp-two - A Camel application that 
reuses the shared Netty HTTP server</li></ul>
+
+
+<h3><a shape="rect" 
name="NettyHTTPServerExample-Implementation"></a>Implementation</h3>
+
+<p>In the 
<tt>shared-netty-http-server/src/main/resources/OSGI-INF/blueprint/http-server.xml</tt>
 file we have a OSGi Blueprint XML file that defines the shared Netty HTTP 
server we are using. First we need to configure the options on the shared Netty 
HTTP server which is done using the 
<tt>NettySharedHttpServerBootstrapConfiguration</tt> class in the configuration 
bean. In this example we use port 8888 as the shared port number.</p>
+
+<p>Then we define the shared <a shape="rect" href="netty-http.html" 
title="Netty HTTP">Netty HTTP</a> server using the 
<tt>DefaultNettySharedHttpServer</tt> class in the httpServer bean.</p>
+
+<p>And finally we need to enlist the shared <a shape="rect" 
href="netty-http.html" title="Netty HTTP">Netty HTTP</a> server in the OSGi 
Service Registry, so we can refer and use it from other bundles.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
+<script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[
+&lt;blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
+           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+           xsi:schemaLocation="
+           http://www.osgi.org/xmlns/blueprint/v1.0.0 
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"&gt;
+
+  &lt;!-- netty http bootstrap configuration --&gt;
+  &lt;bean id="configuration" 
class="org.apache.camel.component.netty.http.NettySharedHttpServerBootstrapConfiguration"&gt;
+     &lt;!-- the port and host is mandatory and must be set --&gt;
+    &lt;property name="port" value="8888"/&gt;
+    &lt;property name="host" value="0.0.0.0"/&gt;
+    &lt;!-- additional options --&gt;
+    &lt;property name="backlog" value="50"/&gt;
+  &lt;/bean&gt;
+
+  &lt;!-- the netty http server --&gt;
+  &lt;bean id="httpServer" 
class="org.apache.camel.component.netty.http.DefaultNettySharedHttpServer"
+        init-method="start" destroy-method="stop"&gt;
+    &lt;property name="nettyServerBootstrapConfiguration" 
ref="configuration"/&gt;
+  &lt;/bean&gt;
+
+  &lt;!-- export in the OSGi server registry so we can use it from the Camel 
application bundles --&gt;
+  &lt;service ref="httpServer" 
interface="org.apache.camel.component.netty.http.NettySharedHttpServer"/&gt;
+
+&lt;/blueprint&gt;
+]]></script>
+</div></div>
+
+<h4><a shape="rect" name="NettyHTTPServerExample-TheCamelroute"></a>The Camel 
route</h4>
+<p>In the two Camel applications, each have a Camel route that uses the shared 
<a shape="rect" href="netty-http.html" title="Netty HTTP">Netty HTTP</a> 
server. The Camel application is defined in an OSGi blueprint file, for example 
from myapp-one its the 
<tt>myapp-one/src/main/resources/OSGI-INF/blueprint/camel-one.xml</tt> file.</p>
+
+<p>First we need to refer to the shared <a shape="rect" href="netty-http.html" 
title="Netty HTTP">Netty HTTP</a> server which was enlisted in the OSGi service 
registry using the reference tag as shown below.</p>
+
+<p>In the Camel route, we then use the <tt>nettySharedHttpServer</tt> option 
to use the shared server, with 
<tt>nettySharedHttpServer=#sharedNettyHttpServer</tt>.</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
+<script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[
+&lt;blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
+           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+           xsi:schemaLocation="
+           http://www.osgi.org/xmlns/blueprint/v1.0.0 
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"&gt;
+
+  &lt;!-- reference the shared http server --&gt;
+  &lt;reference id="sharedNettyHttpServer" 
interface="org.apache.camel.component.netty.http.NettySharedHttpServer"/&gt;
+
+  &lt;!-- Camel application which uses the netty-http component and the shared 
Netty HTTP server --&gt;
+  &lt;camelContext xmlns="http://camel.apache.org/schema/blueprint"&gt;
+
+    &lt;route id="http-route-one"&gt;
+      &lt;from 
uri="netty-http:http://localhost/one?matchOnUriPrefix=true&amp;amp;nettySharedHttpServer=#sharedNettyHttpServer"/&gt;
+      &lt;transform&gt;
+        &lt;simple&gt;Response from Camel one using thread: 
${threadName}&lt;/simple&gt;
+      &lt;/transform&gt;
+    &lt;/route&gt;
+
+  &lt;/camelContext&gt;
+
+&lt;/blueprint&gt;
+]]></script>
+</div></div>
+
+<h3><a shape="rect" 
name="NettyHTTPServerExample-Runningtheexample"></a>Running the example</h3>
+
+<p>This example runs in Apache Karaf / ServiceMix container.</p>
+
+<p>To install Apache Camel in Karaf you type in the shell (we use version 
2.12.0):</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
+  features:chooseurl camel 2.12.0
+  features:install camel
+]]></script>
+</div></div>
+
+<p>First you need to install the following features in Karaf/ServiceMix 
with:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
+  features:install camel-netty-http
+]]></script>
+</div></div>
+
+<p>In the Apache Karaf / ServiceMix shell type:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
+  osgi:install -s mvn:org.apache.camel/camel-example-netty-http-shared/2.12.0
+]]></script>
+</div></div>
+
+<p>Then you can install the Camel applications:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
+  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
+]]></script>
+</div></div>
+
+<p>From a web browser you can then try the example by accessing the followign 
URLs:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
+  http://localhost:8888/one
+  http://localhost:8888/two
+]]></script>
+</div></div>
+
+
+<h3><a shape="rect" name="NettyHTTPServerExample-SeeAlso"></a>See Also</h3>
+<ul class="alternate" type="square"><li><a shape="rect" href="examples.html" 
title="Examples">Examples</a></li><li><a shape="rect" href="netty-http.html" 
title="Netty HTTP">Netty HTTP</a></li></ul>
+</div>
+        </td>
+        <td valign="top">
+          <div class="navigation">
+            <div class="navigation_top">
+                <!-- NavigationBar -->
+<div class="navigation_bottom" id="navigation_bottom"><h3><a shape="rect" 
name="Navigation-Overview"></a><a shape="rect" href="overview.html" 
title="Overview">Overview</a></h3>
+
+<ul class="alternate" type="square"><li><a shape="rect" href="index.html" 
title="Index">Home</a></li><li><a shape="rect" href="download.html" 
title="Download">Download</a></li><li><a shape="rect" 
href="getting-started.html" title="Getting Started">Getting 
Started</a></li><li><a shape="rect" href="faq.html" 
title="FAQ">FAQ</a></li></ul>
+
+
+<h3><a shape="rect" name="Navigation-Documentation"></a><a shape="rect" 
href="documentation.html" title="Documentation">Documentation</a></h3>
+
+<ul class="alternate" type="square"><li><a shape="rect" href="user-guide.html" 
title="User Guide">User Guide</a></li><li><a shape="rect" href="manual.html" 
title="Manual">Manual</a></li><li><a shape="rect" href="books.html" 
title="Books">Books</a></li><li><a shape="rect" href="tutorials.html" 
title="Tutorials">Tutorials</a></li><li><a shape="rect" href="examples.html" 
title="Examples">Examples</a></li><li><a shape="rect" href="cookbook.html" 
title="Cookbook">Cookbook</a></li><li><a shape="rect" href="architecture.html" 
title="Architecture">Architecture</a></li><li><a shape="rect" 
href="enterprise-integration-patterns.html" title="Enterprise Integration 
Patterns">Enterprise Integration Patterns</a></li><li><a shape="rect" 
href="dsl.html" title="DSL">DSL</a></li><li><a shape="rect" 
href="components.html" title="Components">Components</a></li><li><a 
shape="rect" href="data-format.html" title="Data Format">Data 
Format</a></li><li><a shape="rect" href="languages.html" title="Lang
 uages">Languages</a></li><li><a shape="rect" href="security.html" 
title="Security">Security</a></li></ul>
+
+
+<h3><a shape="rect" name="Navigation-Search"></a>Search</h3>
+
+<p>
+</p><form enctype="application/x-www-form-urlencoded" method="get" 
id="cse-search-box" action="http://www.google.com/cse";>
+  <div>
+    <input type="hidden" name="cx" value="007878419884033443453:m5nhvy4hmyq">
+    <input type="hidden" name="ie" value="UTF-8">
+    <input type="text" name="q" size="21">
+    <input type="submit" name="sa" value="Search">
+  </div>
+</form>
+<script type="text/javascript" 
src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en";></script>
+
+
+<h3><a shape="rect" name="Navigation-Community"></a><a shape="rect" 
href="community.html" title="Community">Community</a></h3>
+
+<ul class="alternate" type="square"><li><a shape="rect" href="support.html" 
title="Support">Support</a></li><li><a shape="rect" href="contributing.html" 
title="Contributing">Contributing</a></li><li><a shape="rect" 
href="discussion-forums.html" title="Discussion Forums">Discussion 
Forums</a></li><li><a shape="rect" href="mailing-lists.html" title="Mailing 
Lists">Mailing Lists</a></li><li><a shape="rect" href="user-stories.html" 
title="User Stories">User Stories</a></li><li><a shape="rect" href="news.html" 
title="News">News</a></li><li><a shape="rect" href="articles.html" 
title="Articles">Articles</a></li><li><a shape="rect" href="site.html" 
title="Site">Site</a></li><li><a shape="rect" href="team.html" 
title="Team">Team</a></li><li><a shape="rect" class="external-link" 
href="http://camel-extra.googlecode.com/"; rel="nofollow">Camel 
Extra</a></li></ul>
+
+
+<h3><a shape="rect" name="Navigation-Developers"></a><a shape="rect" 
href="developers.html" title="Developers">Developers</a></h3>
+
+<ul class="alternate" type="square"><li><a shape="rect" href="developers.html" 
title="Developers">Developer Guide</a></li><li><a shape="rect" 
href="source.html" title="Source">Source</a></li><li><a shape="rect" 
href="building.html" title="Building">Building</a></li><li><a shape="rect" 
href="javadoc.html" title="JavaDoc">JavaDoc</a></li><li><a shape="rect" 
href="irc-room.html" title="IRC Room">IRC Room</a></li></ul>
+
+
+<h3><a shape="rect" name="Navigation-ApacheSoftwareFoundation"></a>Apache 
Software Foundation</h3>
+
+<ul class="alternate" type="square"><li><a shape="rect" class="external-link" 
href="http://www.apache.org/licenses/";>License</a></li><li><a shape="rect" 
class="external-link" 
href="http://www.apache.org/foundation/sponsorship.html";>Sponsorship</a></li><li><a
 shape="rect" class="external-link" 
href="http://www.apache.org/foundation/thanks.html";>Thanks</a></li><li><a 
shape="rect" class="external-link" 
href="http://www.apache.org/security/";>Security</a></li></ul>
+</div>
+                <!-- NavigationBar -->
+            </div>
+          </div>
+        </td>
+        </tr>
+       </tbody>
+        </table>
+
+
+        <div class="bottom_red_bar"></div>
+      </div>
+    </div>
+  </div>
+</div>
+<div class="black_box">
+<div class="footer">
+  <div class="footer_l">
+    <div class="footer_r">
+      <div>
+        <a href="$base/privacy-policy.html">Privacy Policy</a> -
+        (<a 
href="https://cwiki.apache.org/confluence/pages/editpage.action?pageId=33292792";>edit
 page</a>)
+        (<a 
href="https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=33292792&amp;showComments=true&amp;showCommentArea=true#addcomment";>add
 comment</a>)
+      </div>
+    </div>
+  </div>
+</div>
+</div>
+</div>
+<div class="design_attribution">
+&copy; 2004-2011 The Apache Software Foundation.
+<br>          
+Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel 
project logo are trademarks of The Apache Software Foundation.  All other marks 
mentioned may be trademarks or registered trademarks of their respective owners.
+<br>
+<a href="http://hiramchirino.com";>Graphic Design By Hiram</a>
+</div>
+
+<!-- Camel committers that would like access to the Analytics, send a note to 
[email protected] -->
+<script type="text/javascript">
+
+  var _gaq = _gaq || [];
+  _gaq.push(['_setAccount', 'UA-25976253-1']);
+  _gaq.push(['_trackPageview']);
+
+  (function() {
+    var ga = document.createElement('script'); ga.type = 'text/javascript'; 
ga.async = true;
+    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 
'http://www') + '.google-analytics.com/ga.js';
+    var s = document.getElementsByTagName('script')[0]; 
s.parentNode.insertBefore(ga, s);
+  })();
+
+</script>
+
+</body>
+</html>
+
+


Reply via email to