Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java code for one time hashmap fill up

807605Sep 11 2007 — edited Sep 11 2007
Dear 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 9 2007
Added on Sep 11 2007
6 comments
311 views