« 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 Nitin Nahata-2 :: Rate this Message:

Reply to Author | View in Thread

Hi Sherry,

One problem I can see with wild cards is that they cannot be resolved
for outbound.  Jim can possibly add here, but I think thats the reason
that wild cards are not supported.

Regards,
Nitin

Sherry Weng wrote:

> Hi Nitin,
>
> Think the semantics of %u was changed in the latest File BC
> implementation and we should definitely fix the description.
> But I also think we should provide the capability to do wild card file
> name pattern matching. That could mean that we add a new pattern, or
> "expand' the current %u pattern to handle both UUID and wild card
> patterns.
>
> Does that make sense?
>
> Regards
> --Sherry
>
> Nitin Nahata wrote:
>> Hi Elena,
>>
>> Actually, %u specifies a UUID, both for input as well as output file
>> name. Theres a typo in the description seen in WSDL editor where it
>> says: "%u denotes a wild card match for input". We will fix this as
>> part of issue # 562.
>> So for cf_%u.xml as the pattern, a valid input file name would be of
>> format: cf_<uuid>.xml. For example:
>> cf_f81d4fae-7dec-11d0-a765-00a0c91e6bf6.xml
>>
>> Regards,
>> Nitin
>>
>>
>> elena_mml wrote:
>>> Hi Sherry,
>>> I can't make the %u pattern work for me for the inbound operations. The
>>> pattern is defined as cf_%.xml and the actual file name is
>>> cf_bisTest.xml.
>>> The file does not get consumed by the FileBC. The pattern cf_%d.xml
>>> works
>>> fine with file name cf_01.xml. Am I missing something?
>>>
>>> As far as polling sub directories we might be able to contribute to the
>>> project because we'll need to resolve this. Just don't know when
>>> exactly
>>> we'll be able to do that.
>>> Thanks,
>>> Elena.
>>>
>>>
>>>
>>>
>>> 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@...
>


---------------------------------------------------------------------
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!