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

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

I think there is one big problem: the message contains some  informations used 
to configure the endpoint when the message is received.
This means that the endpoint is not thread safe.  Endpoints have to be, as they 
are given exchanges concurrently.

Another thing is that I' d really like to have a real WSDL to describe the 
interface for this endpoint, the operations and their parameters.

> FtpReceiverEndpoint (InternalEndpoint) 
> ---------------------------------------
>
>                 Key: SM-1001
>                 URL: https://issues.apache.org/activemq/browse/SM-1001
>             Project: ServiceMix
>          Issue Type: Improvement
>            Reporter: Rabi
>         Attachments: patch.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:[EMAIL PROTECTED]">           
>               
>               <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.

Reply via email to