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.  Hashmap

    Posted Mon December 11, 2017 07:23 AM

    Hi,

    Can anyone please tell how to create a hashmap

    Thanks,
    Bavithra.


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


  • 2.  RE: Hashmap

    Posted Mon December 11, 2017 08:05 AM

    To create a hashmap , You have to define as below in java service.

    HashMap<Integer,String> hm=new HashMap<Integer,String>();


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


  • 3.  RE: Hashmap

    Posted Mon December 11, 2017 11:48 AM

    Code snippet is correct, check also WmPublic package if you find some services OOTB.


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


  • 4.  RE: Hashmap

    Posted Mon December 11, 2017 03:31 PM

    You have to write your own Java service to create Hashmap, the build-in services only support Hashtable.


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


  • 5.  RE: Hashmap

    Posted Wed December 13, 2017 01:43 PM

    You could create a Cache Manager from the IS Admin console under caching and then create a cache in the newly created cache manager. Once you are done with that, use the services in the pub.cache to put and get key\value pairs from the cache.

    This pretty much does what you want out of a HashMap.


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