IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  listFiles - not allowed in subdirectories

    Posted Mon June 08, 2015 07:46 AM

    Hi facing the following problem, I’ve a service. This service is invoked by the scheduler and the service reads a directory where I expect xml and wav files.
    I add the directory which I want to read from to the fileAccessControl.cnf.

    The problem I have is that the content of the files are stored in a directory itself which are dynamically created.
    This means

    
    c:\myDir\expectingContent\T08062015;11370233\IDX\aXML.xml
    c:\myDir\expectingContent\T08062015;11370233\WAV\aWAV.wav

    I add the c:\myDir\expectingContent to the fileAccessControl.cnf
    The directory T08062015;11370233 is dynamically created so I can’t add this to fileAccessControl.cnf

    In the documentation is stated:

    What do I need to do that subdirectories are also allowed?
    I tried with a wildcard what didn’t work.
    Please advise

    Regards Dirk


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: listFiles - not allowed in subdirectories

    Posted Mon June 08, 2015 07:57 AM

    Your IS version and fix levels?

    Did you try

    
    c:\myDir\expectingContent\T*\IDX\aXML.xml

    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: listFiles - not allowed in subdirectories

    Posted Mon June 08, 2015 09:38 AM

    Hi we have IS Version 9.5.1

    I tried the following construction in my configuration file without any success:

    [i]c:\myDir\expectingContent*\;*\IDX[/i]

    I put 2 backslash infront of the semicolon, this is written in the Manual.
    I can’t use the Name fo the file becasue this is also dynamicaly created

    Our fix Level


    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: listFiles - not allowed in subdirectories

    Posted Mon June 08, 2015 10:27 AM

    I think there is a fix suggested by SAG if the wildcards(*) is not working in config file. Meanwhile raise a ticket, if I find other alternate solution I will post you.

    Keep me informed about this issue please.


    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: listFiles - not allowed in subdirectories

    Posted Mon June 08, 2015 12:19 PM

    Opend a ticket, hoping for a solution.


    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: listFiles - not allowed in subdirectories

    Posted Mon June 08, 2015 12:34 PM

    Did you reload the WmPublic package after your change in the config. Try if the below works.

    c:\myDir\expectingContent\T*\IDX\aXML.xml

    or

    c:\myDir\expectingContent\**\IDX\aXML.xml

    Just a note from the docs
    "You can use the wildcard character asterisk () to match multiple folders, subfolders,
    and files. A single asterisk (
    ) wildcard can be used to denote single directory names.
    Double asterisks () can be used to denote multiple files and subfolders in a folder.
    For example, the following entry will allow the services in pub.file folder to write to
    all the .log files in the first subdirectory whose name start with ‘fatal’ in the c:/home/
    directory:
    allowedWritePaths=C:/home/fatal*/*.log
    The following entry will allow the services in pub.file folder to write to all files in all
    the subdirectories of c:/home directory:
    allowedWritePaths=C:/home/

    "


    #Integration-Server-and-ESB
    #webMethods