You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Lars Heinemann (JIRA)" <ji...@apache.org> on 2009/01/09 19:15:03 UTC

[jira] Commented: (SM-1046) Modify servicemix-file to read files by request

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

Lars Heinemann commented on SM-1046:
------------------------------------

I think the base idea is great. 
There is more than one way to do that polling by request:

1. just send a message exchange (InOnly) to the poller and it calls the poll method for the predefined file defined by the xbean settings
 or 
1a. send a message exchange (InOnly) to the poller containing a file or folder to poll and calling the poll method for this file / folder (will override predefined file attribute)

OR

2. send a InOut exchange to the poller and the predefined file (or folder content) will be attached to the out message of the same exchange (there we need to think about changing the marshalers maybe)
 or 
2a. send a InOut exchange to the poller containing a path or file to poll and this file or folder contents will be attached to the out message of the same exchange (will override predefined file attribute, marshaler issue as above mentioned)

What do the others think?



> Modify servicemix-file to read files by request
> -----------------------------------------------
>
>                 Key: SM-1046
>                 URL: https://issues.apache.org/activemq/browse/SM-1046
>             Project: ServiceMix
>          Issue Type: New Feature
>          Components: servicemix-file
>            Reporter: Andrew Romanenco
>            Assignee: Lars Heinemann
>   Original Estimate: 4 days, 8 hours
>  Remaining Estimate: 4 days, 8 hours
>
> Right now servicemix-sftp can be used using two use cases:
> 1. As poller - periodic check of target dir, with creating InOnly messages
> 2. As sender - InOnly messages are saved to files
> I need next use case:
> servicemix-sftp should use InOut exchange flow
> In message will contain full path of file to read
> Out message will contain file content.
> In message should be in format:
> <request>
>     <file>file:///somefile</file>
>     <rename>newname</rename>
> </request>
> when this event is in process, component will read file identified by URI
> and will pack it with some marshal
> if tag <raname> present, then its value will be used as file name for marshal
> this new feature will allow file copy based on event

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