You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by js...@apache.org on 2006/06/20 10:49:35 UTC
svn commit: r415570 - /incubator/servicemix/site/vfs.html
Author: jstrachan
Date: Tue Jun 20 01:49:35 2006
New Revision: 415570
URL: http://svn.apache.org/viewvc?rev=415570&view=rev
Log:
Latest export from confluence
Modified:
incubator/servicemix/site/vfs.html
Modified: incubator/servicemix/site/vfs.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/vfs.html?rev=415570&r1=415569&r2=415570&view=diff
==============================================================================
--- incubator/servicemix/site/vfs.html (original)
+++ incubator/servicemix/site/vfs.html Tue Jun 20 01:49:35 2006
@@ -72,7 +72,7 @@
<LI><A href="background-to-servicemix.html" title="Background to ServiceMix">Background to ServiceMix</A></LI>
<LI><A href="news.html" title="News">News</A></LI>
<LI><A href="faq.html" title="FAQ">FAQ</A></LI>
- <LI><A href="site.html" title="Site">Site</A></LI>
+ <LI><A href="sitemap.html" title="SiteMap">Site</A></LI>
<LI><A href="download.html" title="Download">Download</A></LI>
</UL>
@@ -230,35 +230,11 @@
<P>It works similarly to the <A href="ftp.html" title="FTP">FTP</A> component where it will write files to a directory (on the virtual file system in this case) and poll for files in a file system.</P>
<P>Here is an example of the component configured. First the poller as its much simpler</P>
-<DIV class="code"><DIV class="codeContent">
-<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec componentName=<SPAN class="code-quote">"filePoller"</SPAN> service=<SPAN class="code-quote">"foo:filePoller"</SPAN> destinationService=<SPAN class="code-quote">"foo:receiver"</SPAN>></SPAN>
- <SPAN class="code-tag"><sm:component></SPAN><SPAN class="code-tag"><bean class=<SPAN class="code-quote">"org.apache.servicemix.components.vfs.FilePoller"</SPAN>></SPAN>
- <SPAN class="code-tag"><property name=<SPAN class="code-quote">"workManager"</SPAN> ref=<SPAN class="code-quote">"workManager"</SPAN>/></SPAN>
- <SPAN class="code-tag"><property name=<SPAN class="code-quote">"path"</SPAN> value=<SPAN class="code-quote">"file:/tmp/servicemix/vfs/test"</SPAN>/></SPAN>
- <SPAN class="code-tag"><property name=<SPAN class="code-quote">"period"</SPAN> value=<SPAN class="code-quote">"1000"</SPAN>/></SPAN>
- <SPAN class="code-tag"></bean></SPAN><SPAN class="code-tag"></sm:component></SPAN>
-<SPAN class="code-tag"></sm:activationSpec></SPAN></PRE>
-</DIV></DIV>
+
<P> </P>
<P>Then here's the sender. We're using a FileMarshaler here to turn JBI messages into files with an expression using XPath from the message content to generate the file name in the directory.</P>
-<DIV class="code"><DIV class="codeContent">
-<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec componentName=<SPAN class="code-quote">"fileSender"</SPAN> service=<SPAN class="code-quote">"foo:fileSender"</SPAN>></SPAN>
- <SPAN class="code-tag"><sm:component></SPAN><SPAN class="code-tag"><bean class=<SPAN class="code-quote">"org.apache.servicemix.components.vfs.FileWriter"</SPAN>></SPAN>
- <SPAN class="code-tag"><property name=<SPAN class="code-quote">"path"</SPAN> value=<SPAN class="code-quote">"file:/tmp/servicemix/vfs/test"</SPAN>/></SPAN>
-
- <SPAN class="code-tag"><property name=<SPAN class="code-quote">"marshaler"</SPAN>></SPAN>
- <SPAN class="code-tag"><bean class=<SPAN class="code-quote">"org.apache.servicemix.components.util.DefaultFileMarshaler"</SPAN>></SPAN>
- <SPAN class="code-tag"><property name=<SPAN class="code-quote">"fileName"</SPAN>></SPAN>
- <SPAN class="code-tag"><bean class=<SPAN class="code-quote">"org.apache.servicemix.expression.JaxenStringXPathExpression"</SPAN>></SPAN>
- <SPAN class="code-tag"><constructor-arg value=<SPAN class="code-quote">"concat('sample_', /sample/@id, '.xml')"</SPAN>/></SPAN>
- <SPAN class="code-tag"></bean></SPAN>
- <SPAN class="code-tag"></property></SPAN>
- <SPAN class="code-tag"></bean></SPAN>
- <SPAN class="code-tag"></property></SPAN>
- <SPAN class="code-tag"></bean></SPAN><SPAN class="code-tag"></sm:component></SPAN>
-<SPAN class="code-tag"></sm:activationSpec></SPAN></PRE>
-</DIV></DIV>
+
<P> </P></DIV>
</DIV>