Author: buildbot Date: Wed Jan 9 19:18:25 2013 New Revision: 845782 Log: Production update by buildbot for camel
Modified: websites/production/camel/content/cache/main.pageCache websites/production/camel/content/stream-caching.html Modified: websites/production/camel/content/cache/main.pageCache ============================================================================== Binary files - no diff available. Modified: websites/production/camel/content/stream-caching.html ============================================================================== --- websites/production/camel/content/stream-caching.html (original) +++ websites/production/camel/content/stream-caching.html Wed Jan 9 19:18:25 2013 @@ -158,7 +158,30 @@ from(<span class="code-quote">"jbi:servi </pre> </div></div> +<h3><a shape="rect" name="Streamcaching-Disablestreamcachingexplicitly"></a>Disable stream caching explicitly</h3> +<p>If you have enabled stream caching globally on the CamelContext and you want to disable it for certain routes in a selective manner, you can use the following syntax.</p> +<p><b>Spring DSL:</b></p> +<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent"> +<pre class="code-xml"> +<span class="code-tag"><camelContext streamCache=<span class="code-quote">"true"</span>></span> + <span class="code-tag"><route streamCache=<span class="code-quote">"false"</span>></span> + <span class="code-tag"><from uri=<span class="code-quote">"jetty:http://0.0.0.0:9090"</span>/></span> + <span class="code-tag"><to uri=<span class="code-quote">"file:target/incoming"</span>/></span> + <span class="code-tag"></route></span> +<span class="code-tag"></camelContext></span> +</pre> +</div></div> + +<p><b>Java DSL:</b></p> +<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent"> +<pre class="code-java"> + context.setStreamCache(<span class="code-keyword">true</span>); + + from(<span class="code-quote">"jetty:http:<span class="code-comment">//0.0.0.0:9090"</span>).noStreamCaching() +</span> .to(<span class="code-quote">"file:target/incoming"</span>); +</pre> +</div></div> <h3><a shape="rect" name="Streamcaching-Implicitlyenabledformulticastanddeadletterchannel%28Camel1.x%29"></a>Implicitly enabled for multicast and dead letter channel (Camel 1.x)</h3> <p>Some EIPs require that the message content can be read multiple times. Stream caching will be automatically enabled when using these EIPs in your routes:</p>