You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2008/03/28 16:10:32 UTC

[jira] Commented: (SM-1001) FtpReceiverEndpoint (InternalEndpoint)

    [ https://issues.apache.org/activemq/browse/SM-1001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41891#action_41891 ] 

Guillaume Nodet commented on SM-1001:
-------------------------------------

Maybe it would be better to use attachments to put a stream on the FTP file instead of loading the file in memory ?
Even use MTOM to reference the data.  Also, I think we need a way to handle non text based input, so a base64 encoding may do it.

So I'd rather define a clean WSDL, use wdl2java to create the interface and data structure.  We have already done that in the servicemix-wsn2005 component.   If we design it correctly, this interface could be reused for all the file system and the same code (nearly) could be used for FTP, files or VFS (http://commons.apache.org/vfs/)


> FtpReceiverEndpoint (InternalEndpoint) 
> ---------------------------------------
>
>                 Key: SM-1001
>                 URL: https://issues.apache.org/activemq/browse/SM-1001
>             Project: ServiceMix
>          Issue Type: Improvement
>            Reporter: Rabi
>         Attachments: patch.txt, patch1.txt, patch3.txt
>
>
> FtpReceiverEndpoint (InternalEndpoint) 
> - Can accpet in-out mep for listing files
> - Supports InOnly mep for get/mget operations...
> Usage:
> xbean configuration:
> ------------------------------
> <beans xmlns:ftp="http://servicemix.apache.org/ftp/1.0"
>        xmlns:b="http://servicemix.apache.org/samples/ftp-receiver">
>  <ftp:receiver service="b:ftpReceiver"
>               endpoint="endpoint"
>               uri="ftp://rabi:Mpw3w9VC@localhost">           
>               
>               <ftp:target>
>               <ftp:exchange-target service="b:pipeline"/>
>               </ftp:target>
> </ftp:receiver>   
> Input Message structure
> ---------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <ftp:input xmlns:ftp="http://servicemix.apache.org/ftp/1.0" operation="mget" recursive="true" filter="*" relativeUri="/inbox">
> </ftp:input>
> Output for file listing
> ----------------------------
> STATUS: 200
> <?xml version='1.0' encoding='UTF-8'?>
> <ftp:list xmlns:ftp="http://servicemix.apache.org/ftp/1.0">
>      <ftp:directory name="/http/inbox/data/inner">
>             <ftp:file>/http/inbox/data/inner/tx.xml</ftp:file>
>      </ftp:directory>
>      <ftp:file>/http/inbox/data/servicemix.xml</ftp:file>
> </ftp:list>
> This is a very simple version. Please suggest on the improvements..

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.