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/14 16:29:33 UTC
svn commit: r414269 - /incubator/servicemix/site/file.html
Author: jstrachan
Date: Wed Jun 14 07:29:32 2006
New Revision: 414269
URL: http://svn.apache.org/viewvc?rev=414269&view=rev
Log:
Latest export from confluence
Modified:
incubator/servicemix/site/file.html
Modified: incubator/servicemix/site/file.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/file.html?rev=414269&r1=414268&r2=414269&view=diff
==============================================================================
--- incubator/servicemix/site/file.html (original)
+++ incubator/servicemix/site/file.html Wed Jun 14 07:29:32 2006
@@ -80,9 +80,10 @@
<H3><A name="Navigation-Community"></A>Community</H3>
<UL class="alternate" type="square">
- <LI><SPAN class="nobr"><A href="navigation.html" title="Visit page outside Confluence" rel="nofollow">Wiki<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><A href="support.html" title="Support">Support</A></LI>
<LI><A href="discussion-forums.html" title="Discussion Forums">Discussion Forums</A></LI>
<LI><A href="mailing-lists.html" title="Mailing Lists">Mailing Lists</A></LI>
+ <LI><SPAN class="nobr"><A href="navigation.html" title="Visit page outside Confluence" rel="nofollow">Wiki<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
<LI><A href="contributing.html" title="Contributing">Contributing</A></LI>
<LI><A href="team.html" title="Team">Team</A></LI>
<LI><A href="users.html" title="Users">Users</A></LI>
@@ -180,7 +181,7 @@
<H3><A name="Navigation-RelatedProjects"></A>Related Projects</H3>
<UL class="alternate" type="square">
- <LI><SPAN class="nobr"><A href="http://activemq.codehaus.org/" title="High Performance Message Bus" rel="nofollow">Apache ActiveMQ<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><SPAN class="nobr"><A href="http://incubator.apache.org/activemq/" title="High Performance Message Bus" rel="nofollow">Apache ActiveMQ<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
<LI><SPAN class="nobr"><A href="http://lingo.codehaus.org/" title="POJO Remoting using JMS" rel="nofollow">Lingo<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
<LI><SPAN class="nobr"><A href="http://jencks.org/" title="Message Driven POJOs and pooling for JMS and JDBC" rel="nofollow">Jencks<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
<LI><SPAN class="nobr"><A href="http://stomp.codehaus.org/" title="Simple cross language protocol for messaging" rel="nofollow">Stomp<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
@@ -227,38 +228,11 @@
<P>These components write messages to files in a directory or poll files or directories (possibly recursively) to send files into the JBI.</P>
<P>Firstly here is the poller which will poll a file or directory (recursively by default) to find files, which are then sent into the JBI bus</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.file.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">"file"</SPAN> value=<SPAN class="code-quote">"target/test-data/file"</SPAN>/></SPAN>
- <!--
- <SPAN class="code-tag"><property name=<SPAN class="code-quote">"delete"</SPAN> value=<SPAN class="code-quote">"false"</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.file.FileWriter"</SPAN>></SPAN>
- <SPAN class="code-tag"><property name=<SPAN class="code-quote">"directory"</SPAN> value=<SPAN class="code-quote">"target/test-data/file"</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>
<P>You can if you prefer let the operating system generate temporary file names in the directory specifying an optional prefix and suffix.</P></DIV>