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.  Trying to use PSUtilities listFiles

    Posted Fri April 07, 2006 08:16 PM

    and I’m getting this error:

    Specified path is not on the read allowed list in the PSUtilities configuration file!

    Configuration file? Has anyone envountered this or does anyone know anything about this?

    Thanks,
    Harry


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Trying to use PSUtilities listFiles

    Posted Fri April 07, 2006 08:25 PM

    Harry,

    Basically update this file located in the packages/PSUtilities/config file and set
    allowedReadPaths specify directory path that to read files and save it and reload the PSUtilities package.

    Run the service with the readpath directory it should show you list of Files.

    HTH,
    RMG


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Trying to use PSUtilities listFiles

    Posted Fri April 07, 2006 08:33 PM

    Sigh. Find and read the documentation on the PSUtilities sample utilites on Advantage.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 4.  RE: Trying to use PSUtilities listFiles

    Posted Fri April 07, 2006 11:09 PM

    I need to do something like “ls /myfolder/*.dat”? The Java API talks of java.io.FilenameFilter. Could I define a class within my java service which extends this interface and then feed it to File.listFiles()? Or is there another better way of accomplishing the above. Thanks for your help.


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: Trying to use PSUtilities listFiles

    Posted Mon April 10, 2006 06:51 PM

    Thats how I’m going about it … defining an inline java class that implements the FilenameFilter interface.


    filter = new FilenameFilter() {
    public boolean accept(File dir, String filename) {
    return (filename.indexOf(filterString) != -1);
    }
    };

    File file = new File(directoryPath);

    file.list(filter)



    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB