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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Use a configration file like ".properties"

    Posted 03/16/17 05:59 AM

    Hi.

    Please sincerely provide with easy solutions or ideas for the following requirement.

    1. I create the flow service A in Package A which reads a csv file in local Linux.
    2. To locate the csv file, I would like to use a customized configuration file. (*.xml, *.properties, etc.)
    3. The configuration file should be loaded when IS start or Package A is reloaded.

    Best regards,
    Shotat


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Use a configration file like ".properties"

    Posted 03/16/17 11:13 AM

    Hi,

    Can’t we have File Polling for your requirement ?

    Thanks,
    Yogesh


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Use a configration file like ".properties"

    Posted 03/16/17 11:50 AM

    Hi,

    for point 3 this can be handled by a StartupService which will be executed every time when the package is loaded.

    You will have to write a service which reads in the configuraiton file from filesystem (point 2) and then define this service as a StartupService for this package (righ click on the package and then choose “Properties”).

    For reading in and parsing the csv file please have a look at the FlatFile feature.

    I am not sure if file polling will help here as it is using fixed directory name in the port configuration.
    Depends on which part of the file location Shogo wants to customize.

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Use a configration file like ".properties"

    Posted 03/17/17 02:22 AM

    Yogesh-san, Holger-san,

    Thanks for the advice very much.
    I will try to create some solutions according to your advices.

    When I have any question, please sincerely let me ask.

    Best regards,
    Shotat


    #Integration-Server-and-ESB
    #webMethods