|
View:
New views
20 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 | Next > |
|
|
Cannot configure FileBC to poll dynamic subdirectories and files with variable names.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. |
|
|
Re: Cannot configure FileBC to poll dynamic subdirectories and files with variable names.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@... |
|
|
Re: Cannot configure FileBC to poll dynamic subdirectories and files with variable names.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@... |
|
|
Re: Cannot configure FileBC to poll dynamic subdirectories and files with variable names.Hi Sherry,
Thank you for you reply. The reason is security. Each system user has a permission to read and write to only his/her directory. The requirement is that each user will drop the files for processing into his own directory ( all user specific dirs will be under the same root directory) and one instance of the File Processing Service will go through each user dir and consume files matching the pattern. Elena.
|
|
|
Re: Cannot configure FileBC to poll dynamic subdirectories and files with variable names.Hi Andi,
I do not have an immediate requirement to know the directory the file was picked up from but I think it would be good to have this feature. Unfortunately I will not be able to contribute at this time due to the project time constraints but I think it should not be that hard to enhance the FileBC to support polling subdirectories, so I hope it won't be pushed too much down the priority list. :) I am surprised this use case hasn't been brought up before. Thank you, Elena.
|
|
|
Re: Cannot configure FileBC to poll dynamic subdirectories and files with variable names.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.
|
|
|
Re: Cannot configure FileBC to poll dynamic subdirectories and files with variable names.Hi Elena,
Yes, I just tried the %u pattern and it's not working properly on the inbound side. This is a bug and we will definitely try to fix it soon. Would you please file a bug in the OJC issue tracker? We are looking to make additional enhancements and raise the overall quality in File BC in the coming months, so we will consider the requirement to poll from subdirectories, although I can't really say when it can implemented at this moment. Your contribution is certainly welcome, and let's try to collaborate/coordinate this when you are ready to work on it... Thanks --Sherry 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@... |
|
|
Re: Cannot configure FileBC to poll dynamic subdirectories and files with variable names.Thank you, Sherry. Issue number is 562.
Elena.
|
|
|
Re: Cannot configure FileBC to poll dynamic subdirectories and files with variable names.
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: |
|
|
Re: Cannot configure FileBC to poll dynamic subdirectories and files with variable names.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@... |
|
|
Re: Cannot configure FileBC to poll dynamic subdirectories and files with variable names.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@... |
|
|
RE: Cannot configure FileBC to poll dynamic subdirectories and files with variable names.You need wild-cards on inbound - preferably regex expression.
On outbound, you do need to be able to provide the possibility for sequence numbers, etc. Look back in either the Datagate or eGate documentation for file adapters - we need that functionality. Peter C Berkman (cell: +1 909-268-0084) > -----Original Message----- > From: Nitin.Nahata@... [mailto:Nitin.Nahata@...] > Sent: Friday, June 06, 2008 1:31 PM > To: dev@... > Cc: Jim Fu > Subject: Re: Cannot configure FileBC to poll dynamic subdirectories and > files with variable names. > > 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@... --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@... For additional commands, e-mail: dev-help@... |
|
|
Re: Cannot configure FileBC to poll dynamic subdirectories and files with variable names.On the outbound side, %u could just mean GUID as it is. However, on the
inbound (polling side), we should not force the users to always have UUID in the file names, in other words, wild card matching should be there IMO. Thanks --Sherry Nitin Nahata wrote: > 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: |