java code for one time hashmap fill up
807605Sep 11 2007 — edited Sep 11 2007Dear all,
What i'm trying to do is creating a hashmap and filling it with data from the database and accessing that hashmap throught out the application. But my requirement is to fill that hashmap once and there after i dont want to hit the database again for filling that hashmap , but in my case everytime it is firing the query the to database and filling the hashmap. Any one will plz help me to write the code for the same.
Thanks in advance
deepak