webMethods

webMethods

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.  Quick Sort

    Posted Wed February 17, 2010 01:14 PM

    Can we implement quick sort to sort a StringList in wM?
    If yes, can we achieve it with simple flow service or a java service needs to be built?


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


  • 2.  RE: Quick Sort

    Posted Wed February 17, 2010 04:53 PM

    A StringList in IS is just a Java String array. You can use Arrays.sort() which uses a modified mergesort algorithm. If you really need/want a quicksort, do a search of the web for “java string array quicksort” and you’ll likely get some hits on code you can use.

    In either case, you’d create a Java service.


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