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/07/18 12:18:48 UTC

svn commit: r869952 - in /websites/production/camel/content: cache/main.pageCache stream-caching.html

Author: buildbot
Date: Thu Jul 18 10:18:48 2013
New Revision: 869952

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 Thu Jul 18 10:18:48 2013
@@ -288,6 +288,24 @@ context.setStreamCaching(true);
 
 <h4><a shape="rect" name="Streamcaching-UsingStreamCachingStrategyinXML"></a>Using StreamCachingStrategy in XML</h4>
 
+<p>And in XML you do:</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;camelContext streamCache="true" xmlns="http://camel.apache.org/schema/blueprint"&gt;
+
+    &lt;streamCaching id="myCacheConfig" bufferSize="16384" spoolDirectory="/tmp/cachedir" spoolThreshold="65536"/&gt;
+
+    &lt;route&gt;
+      &lt;from uri="direct:c"/&gt;
+      &lt;to uri="mock:c"/&gt;
+    &lt;/route&gt;
+
+  &lt;/camelContext&gt;
+]]></script>
+</div></div>
+
+<p>You can also define a &lt;bean&gt; instead of using the &lt;streamCaching&gt; tag:</p>
+
 <p>And in XML you do</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
 <script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[