-2

i'm using Jboss AS 7 and a Webapp that conncts to database from App Server DataSource. there are tables in Database which i might require to frequently query like Master Tables (e.g Country Master) and populate in dropdown. 'What would be the best method to Query and keep the results in Beans or Data Objects and retrive it from memory whenever required. any frameworks available or App Server's capability can be usilized ? pls suggest.

Mitesh Manani
  • 85
  • 1
  • 8
  • Please read the SO rules. These type of questions are not valid. – Zeus Jul 08 '14 at 18:25
  • how different is my Q's from this http://stackoverflow.com/questions/18513455/how-to-run-a-time-consuming-task-on-startup-in-a-web-application-while-deploying ? but didnt get much clarity from that. sure will refer to SO rules. – Mitesh Manani Jul 08 '14 at 18:49

1 Answers1

0

Hibernate tool can help you solve this issues. There is a secondary cache level which can help you store the values in the cache through out the application lifetime. (of-course you can delete update the cache when you think it needs to be updated)

Link to the topic here. Managing the secondary cache here, and example code

Zeus
  • 6,386
  • 6
  • 54
  • 89