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/02/07 16:25:07 UTC
svn commit: r849767 - in /websites/production/camel/content:
book-in-one-page.html cache/main.pageCache
Author: buildbot
Date: Thu Feb 7 15:25:06 2013
New Revision: 849767
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/book-in-one-page.html
websites/production/camel/content/cache/main.pageCache
Modified: websites/production/camel/content/book-in-one-page.html
==============================================================================
--- websites/production/camel/content/book-in-one-page.html (original)
+++ websites/production/camel/content/book-in-one-page.html Thu Feb 7 15:25:06 2013
@@ -35142,6 +35142,25 @@ servlet:<span class="code-comment">//rel
</div></div>
+<p>From <b>Camel 2.11</b> onwards Camel will detect this duplicate and fail to start the application. You can control to ignore this duplicate by setting the servlet init-parameter ignoreDuplicateServletName to true as follows:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+ <span class="code-tag"><servlet></span>
+ <span class="code-tag"><servlet-name></span>CamelServlet<span class="code-tag"></servlet-name></span>
+ <span class="code-tag"><display-name></span>Camel Http Transport Servlet<span class="code-tag"></display-name></span>
+ <span class="code-tag"><servlet-class></span>org.apache.camel.component.servlet.CamelHttpTransportServlet<span class="code-tag"></servlet-class></span>
+ <span class="code-tag"><init-param></span>
+ <span class="code-tag"><param-name></span>ignoreDuplicateServletName<span class="code-tag"></param-name></span>
+ <span class="code-tag"><param-value></span>true<span class="code-tag"></param-value></span>
+ <span class="code-tag"></init-param></span>
+ <span class="code-tag"></servlet></span>
+</pre>
+</div></div>
+
+<p>But its <b>strongly advised</b> to use unique servlet-name for each Camel application to avoid this duplication clash, as well any unforeseen side-effects.</p>
+
+
<h3><a shape="rect" name="BookInOnePage-Sample"></a>Sample</h3>
<div class="panelMacro"><table class="infoMacro"><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/information.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1">From Camel 2.7 onwards it's easier to use <a shape="rect" href="servlet.html" title="SERVLET">Servlet</a> in Spring web applications. See <a shape="rect" href="servlet-tomcat-example.html" title="Servlet Tomcat Example">Servlet Tomcat Example</a> for details.</td></tr></table></div>
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.