You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2013/06/19 14:18:36 UTC
svn commit: r866435 - in /websites/production/camel/content:
cache/main.pageCache netty-http.html
Author: buildbot
Date: Wed Jun 19 12:18:36 2013
New Revision: 866435
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/netty-http.html
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/netty-http.html
==============================================================================
--- websites/production/camel/content/netty-http.html (original)
+++ websites/production/camel/content/netty-http.html Wed Jun 19 12:18:36 2013
@@ -237,6 +237,39 @@ from(<span class="code-quote">"netty-htt
</pre>
</div></div>
+<h4><a shape="rect" name="NettyHTTP-Reusingsameserverbootstrapconfigurationwithmultipleroutes"></a>Reusing same server bootstrap configuration with multiple routes</h4>
+
+<p>By configuring the common server bootstrap option in an single instance of a <tt>org.apache.camel.component.netty.NettyServerBootstrapConfiguration</tt> type, we can use the <tt>bootstrapConfiguration</tt> option on the <a shape="rect" href="netty-http.html" title="Netty HTTP">Netty HTTP</a> consumers to refer and reuse the same options across all consumers.</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+<span class="code-tag"><bean id=<span class="code-quote">"nettyHttpBootstrapOptions"</span> class=<span class="code-quote">"org.apache.camel.component.netty.NettyServerBootstrapConfiguration"</span>></span>
+ <span class="code-tag"><property name=<span class="code-quote">"backlog"</span> value=<span class="code-quote">"200"</span>/></span>
+ <span class="code-tag"><property name=<span class="code-quote">"connectionTimeout"</span> value=<span class="code-quote">"20000"</span>/></span>
+ <span class="code-tag"><property name=<span class="code-quote">"workerCount"</span> value=<span class="code-quote">"16"</span>/></span>
+<span class="code-tag"></bean></span>
+</pre>
+</div></div>
+
+<p>And in the routes you refer to this option as shown below</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+<span class="code-tag"><route></span>
+ <span class="code-tag"><from uri=<span class="code-quote">"netty-http:http://0.0.0.0:{{port}}/foo?bootstrapConfiguration=#nettyHttpBootstrapOptions"</span>/></span>
+ ...
+<span class="code-tag"></route></span>
+
+<span class="code-tag"><route></span>
+ <span class="code-tag"><from uri=<span class="code-quote">"netty-http:http://0.0.0.0:{{port}}/bar?bootstrapConfiguration=#nettyHttpBootstrapOptions"</span>/></span>
+ ...
+<span class="code-tag"></route></span>
+
+<span class="code-tag"><route></span>
+ <span class="code-tag"><from uri=<span class="code-quote">"netty-http:http://0.0.0.0:{{port}}/beer?bootstrapConfiguration=#nettyHttpBootstrapOptions"</span>/></span>
+ ...
+<span class="code-tag"></route></span>
+</pre>
+</div></div>
<h3><a shape="rect" name="NettyHTTP-SeeAlso"></a>See Also</h3>
<ul><li><a shape="rect" href="configuring-camel.html" title="Configuring Camel">Configuring Camel</a></li><li><a shape="rect" href="component.html" title="Component">Component</a></li><li><a shape="rect" href="endpoint.html" title="Endpoint">Endpoint</a></li><li><a shape="rect" href="getting-started.html" title="Getting Started">Getting Started</a></li></ul>