Author: buildbot Date: Wed Apr 11 04:27:35 2012 New Revision: 812290 Log: Production update by buildbot for camel
Modified: websites/production/camel/content/book-component-appendix.html websites/production/camel/content/book-in-one-page.html websites/production/camel/content/cache/main.pageCache websites/production/camel/content/file2.html Modified: websites/production/camel/content/book-component-appendix.html ============================================================================== --- websites/production/camel/content/book-component-appendix.html (original) +++ websites/production/camel/content/book-component-appendix.html Wed Apr 11 04:27:35 2012 @@ -3954,29 +3954,6 @@ from(<span class="code-quote">"file:<spa <p>The body will be a <tt>File</tt> object that points to the file that was just dropped into the <tt>inputdir</tt> directory.</p> -<h4><a shape="rect" name="BookComponentAppendix-Readfilesfromadirectoryandsendthecontenttoajmsqueue"></a>Read files from a directory and send the content to a jms queue</h4> - -<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent"> -<pre class="code-java"> -from(<span class="code-quote">"file:<span class="code-comment">//inputdir/"</span>).convertBodyTo(<span class="code-object">String</span>.class).to(<span class="code-quote">"jms:test.queue"</span>)</span> -</pre> -</div></div> - -<p>By default the file endpoint sends a <tt>FileMessage</tt> which contains a <tt>File</tt> object as the body. If you send this directly to the JMS component the JMS message will only contain the <tt>File</tt> object but not the content. By converting the <tt>File</tt> to a <tt>String</tt>, the message will contain the file content which is probably what you want.</p> - -<p>The route above using Spring DSL:</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">"file://inputdir/"</span>/></span> - <span class="code-tag"><convertBodyTo type=<span class="code-quote">"java.lang.String"</span>/></span> - <span class="code-tag"><to uri=<span class="code-quote">"jms:test.queue"</span>/></span> - <span class="code-tag"></route></span> -</pre> -</div></div> - - - <h4><a shape="rect" name="BookComponentAppendix-Writingtofiles"></a>Writing to files</h4> <p>Camel is of course also able to write files, i.e. produce files. In the sample below we receive some reports on the SEDA queue that we process before they are written to a directory.</p> <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent"> 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 Wed Apr 11 04:27:35 2012 @@ -24125,29 +24125,6 @@ from(<span class="code-quote">"file:<spa <p>The body will be a <tt>File</tt> object that points to the file that was just dropped into the <tt>inputdir</tt> directory.</p> -<h4><a shape="rect" name="BookInOnePage-Readfilesfromadirectoryandsendthecontenttoajmsqueue"></a>Read files from a directory and send the content to a jms queue</h4> - -<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent"> -<pre class="code-java"> -from(<span class="code-quote">"file:<span class="code-comment">//inputdir/"</span>).convertBodyTo(<span class="code-object">String</span>.class).to(<span class="code-quote">"jms:test.queue"</span>)</span> -</pre> -</div></div> - -<p>By default the file endpoint sends a <tt>FileMessage</tt> which contains a <tt>File</tt> object as the body. If you send this directly to the JMS component the JMS message will only contain the <tt>File</tt> object but not the content. By converting the <tt>File</tt> to a <tt>String</tt>, the message will contain the file content which is probably what you want.</p> - -<p>The route above using Spring DSL:</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">"file://inputdir/"</span>/></span> - <span class="code-tag"><convertBodyTo type=<span class="code-quote">"java.lang.String"</span>/></span> - <span class="code-tag"><to uri=<span class="code-quote">"jms:test.queue"</span>/></span> - <span class="code-tag"></route></span> -</pre> -</div></div> - - - <h4><a shape="rect" name="BookInOnePage-Writingtofiles"></a>Writing to files</h4> <p>Camel is of course also able to write files, i.e. produce files. In the sample below we receive some reports on the SEDA queue that we process before they are written to a directory.</p> <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent"> Modified: websites/production/camel/content/cache/main.pageCache ============================================================================== Binary files - no diff available. Modified: websites/production/camel/content/file2.html ============================================================================== --- websites/production/camel/content/file2.html (original) +++ websites/production/camel/content/file2.html Wed Apr 11 04:27:35 2012 @@ -420,29 +420,6 @@ from(<span class="code-quote">"file:<spa <p>The body will be a <tt>File</tt> object that points to the file that was just dropped into the <tt>inputdir</tt> directory.</p> -<h4><a shape="rect" name="File2-Readfilesfromadirectoryandsendthecontenttoajmsqueue"></a>Read files from a directory and send the content to a jms queue</h4> - -<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent"> -<pre class="code-java"> -from(<span class="code-quote">"file:<span class="code-comment">//inputdir/"</span>).convertBodyTo(<span class="code-object">String</span>.class).to(<span class="code-quote">"jms:test.queue"</span>)</span> -</pre> -</div></div> - -<p>By default the file endpoint sends a <tt>FileMessage</tt> which contains a <tt>File</tt> object as the body. If you send this directly to the JMS component the JMS message will only contain the <tt>File</tt> object but not the content. By converting the <tt>File</tt> to a <tt>String</tt>, the message will contain the file content which is probably what you want.</p> - -<p>The route above using Spring DSL:</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">"file://inputdir/"</span>/></span> - <span class="code-tag"><convertBodyTo type=<span class="code-quote">"java.lang.String"</span>/></span> - <span class="code-tag"><to uri=<span class="code-quote">"jms:test.queue"</span>/></span> - <span class="code-tag"></route></span> -</pre> -</div></div> - - - <h4><a shape="rect" name="File2-Writingtofiles"></a>Writing to files</h4> <p>Camel is of course also able to write files, i.e. produce files. In the sample below we receive some reports on the SEDA queue that we process before they are written to a directory.</p> <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">