camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r866435 - in /websites/production/camel/content: cache/main.pageCache netty-http.html
Date Wed, 19 Jun 2013 12:18:36 GMT
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">&lt;bean id=<span class="code-quote">"nettyHttpBootstrapOptions"</span>
class=<span class="code-quote">"org.apache.camel.component.netty.NettyServerBootstrapConfiguration"</span>&gt;</span>
+  <span class="code-tag">&lt;property name=<span class="code-quote">"backlog"</span>
value=<span class="code-quote">"200"</span>/&gt;</span>
+  <span class="code-tag">&lt;property name=<span class="code-quote">"connectionTimeout"</span>
value=<span class="code-quote">"20000"</span>/&gt;</span>
+  <span class="code-tag">&lt;property name=<span class="code-quote">"workerCount"</span>
value=<span class="code-quote">"16"</span>/&gt;</span>
+<span class="code-tag">&lt;/bean&gt;</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">&lt;route&gt;</span>
+  <span class="code-tag">&lt;from uri=<span class="code-quote">"netty-http:http://0.0.0.0:{{port}}/foo?bootstrapConfiguration=#nettyHttpBootstrapOptions"</span>/&gt;</span>
+  ...
+<span class="code-tag">&lt;/route&gt;</span>
+
+<span class="code-tag">&lt;route&gt;</span>
+  <span class="code-tag">&lt;from uri=<span class="code-quote">"netty-http:http://0.0.0.0:{{port}}/bar?bootstrapConfiguration=#nettyHttpBootstrapOptions"</span>/&gt;</span>
+  ...
+<span class="code-tag">&lt;/route&gt;</span>
+
+<span class="code-tag">&lt;route&gt;</span>
+  <span class="code-tag">&lt;from uri=<span class="code-quote">"netty-http:http://0.0.0.0:{{port}}/beer?bootstrapConfiguration=#nettyHttpBootstrapOptions"</span>/&gt;</span>
+  ...
+<span class="code-tag">&lt;/route&gt;</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>



Mime
View raw message