Francois, As far as I know, there is not purely declarative way of activating/deactivating endpoint on specific times of the day. You probably can do it programmaticaly if you want to...
The file name is automatically added to the message in the ESB as a message property (org.apache.servicemix.file.name). It is used by the default components (e.g. a servicemix-file sender endpoint will use it as the file name when creating a file) and you can also access it using while processing your XML message (supported in Java, XPath, Drools, ...) You should be able to use a lockmanager (together with deleteFile="false") to fulfill the last use case. I have never done this myself so I do not have an example of it, but you can always take a look at the default implementation that comes with ServiceMix and start from there. I'll gladly try to help you out if you encounter any problems (always eager to learn ;) ) Regards, Gert Francois LIOT wrote: > > Hello, > > > > I need to create a LOT of FTP Pooler endpoints, and I'm wondering how to > deal with different FTP approach: > > - some partners put available a single file once a day, and more or > less, on defined schedule, I will check/poll each 5 minutes, is it > possible to stop to check once I received a file ? (by simple > parameters) > > - some partners put specific file name on their file, and we need to > keep this information, where can we get it ? > > - some partners put always their data with the same filename (and I have > no rights to delete these file remotely), could I check size of > available data and use customized lockManager to select if I download > the file or not (if yes, does somebody have an example) ? Other > possibility ? > > > > Thanks by advance, > > > > Regards, > > > > Francois Liot > > > > > -- View this message in context: http://www.nabble.com/servicemix-ftp-Poller-endpoint-tf4131485s12049.html#a11752208 Sent from the ServiceMix - User mailing list archive at Nabble.com.
