Can anyone please tell how to create a hashmap


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

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

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

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

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.