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.  How to avoid hard coded values for the Directory Names

    Posted Thu June 07, 2007 09:32 PM

    Hi,
    Our requirement is to place our XML files in 3 different directories through FTP for DEVL,TEST and PROD instances respectively. At the moment we are hardcoding all the host names and passwords in all the 3 instances. is there any way to avoid these hard coding values?

    I really appreciate if anyone can hlep me regarding this

    Thaks
    vasu


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


  • 2.  RE: How to avoid hard coded values for the Directory Names

    Posted Thu June 07, 2007 09:44 PM

    Use a configuration file. There are several threads on the forums describing various approaches for doing so.


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


  • 3.  RE: How to avoid hard coded values for the Directory Names

    Posted Thu June 07, 2007 10:28 PM

    Do take Rob’s advice and search wMUsers for previous discussions on properties and configuration variables.

    Also, beginning with Integration Server 6.5 SP2 there is a new built-in service pub.utils:getSystemProperty that will retrieve a property from the JVM’s system properties. The service allows a default value to be specified, if the property key does not exist.

    So, you can build a simple startup service that reads a properties file for that package, adds the props into the system properties and then your service can call the new built-in service to retrieve the desired property.

    Note that there are many more options and that the new meta-data repository coming in IS 7.x should add a few more.

    Mark


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


  • 4.  RE: How to avoid hard coded values for the Directory Names

    Posted Fri June 08, 2007 11:44 AM

    Hi Mark,
    can you please point me to some additional details about “meta-data repository” ? It seems very interesting. I’ve searched the forum found nothing.

    Thanks in advance,
    Sandro


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


  • 5.  RE: How to avoid hard coded values for the Directory Names

    Posted Tue June 12, 2007 11:18 PM

    Thanks Mark and Reamon. Now i can able to achieve the task.


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


  • 6.  RE: How to avoid hard coded values for the Directory Names

    Posted Tue June 12, 2007 11:47 PM

    Check out the Fabric 7.0 Product Roadmap available from the Integration World 2006 archives on Advantage. You can also download the product documentation for the “Metadata Library” component of Fabric 7.0 in the Advantage Bookshelf area.

    Mark


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