« Return to Thread: Cannot configure FileBC to poll dynamic subdirectories and files with variable names.

Re: Cannot configure FileBC to poll dynamic subdirectories and files with variable names.

by Andreas Egloff :: Rate this Message:

Reply to Author | View in Thread

Sounds like a useful use case, details definitely  would help to
prioritize (or do you feel like contributing?). Do you have requirements
within the business logic then to know what file/directory was picked up?
Thanks,
Andi

Sherry Weng wrote:

> Hi Elena,
>
> File BC is not designed to poll files from sub directories. You should
> be able to use the filename pattern, such as the one you provided
> here, to poll all the matching files in /the /directory specified for
> "fileDirectory".
> This is an interesting use case and we haven't come across similar
> requests in the past.  Are there any good reasons to not to have all
> the files in one directory?
>
> Regards
>
> Sherry Weng
>
> Open ESB Community
> http://open-esb.org
>
>
>
> elena_mml wrote:
>> I need to configure the FileBC to poll all sub directories under a
>> root dir
>> dynamically and process any file with <someName_ cf.xml>. The subDir
>> names
>> are dynamic and need to be discovered at the run time.   e.g.    
>> /rootDir/
>>        /subDir1
>>           /subDir1.2
>>                 fileA_cf.xml
>>                 fileB_cf.xml
>>        /subDir2
>>           /subDir2.2
>>                 fileC_cf.xml
>>              
>> The pattern for /rooDir/*/* does not work for the fileDirectory
>> property.
>> And I did not have luck with the file name pattern %u_cf.xml defined
>> as the
>> fileName property with fileNameIsPattern=true.  
>> Has anyone done this or has any suggestions on how this could be
>> accomplished?
>>
>> Thank you,
>> Elena.
>>
>>  
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: Cannot configure FileBC to poll dynamic subdirectories and files with variable names.

LightInTheBox - Buy quality products at wholesale price!