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.  Hash table implementaion

    Posted 01/19/09 12:41 PM

    Hi Experts,

    In our flow we have a stirng which need to be searched and replaced with different string. So we had pub.String.replace to replace the string.

    But now we have too many items/strings to be searched and replaced.

    So using a replace function many times is not a better option.

    We decided to implement hash table concept.

    Could anyone please suggest us how to implemnt this search and replacing in hash table?

    Any documentation available anywhere?

    Thanks


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


  • 2.  RE: Hash table implementaion

    Posted 01/19/09 08:23 PM

    Not sure why you want to use hash table for this.
    if just for storing the FromStr and ToStr pairs, yes, you should be able to use it, just write a few lines of java code (declare the harsh table there), with a setValue, getValue wrapper service.


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


  • 3.  RE: Hash table implementaion

    Posted 01/29/09 06:37 PM

    There’s also some built-in services in the pub.storage folder.


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


  • 4.  RE: Hash table implementaion

    Posted 02/05/09 05:06 AM

    I think regular expressions can be used depending on the number of strings that needs to be replaced.


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