Fetch lookup data from database during app startup in spring.
posted 8 years ago
I want to pre-fetch some constant data like lookups into the memory. For eg: statecode, statedesc into the memory.
What is the best way of doing this in spring? My data resides in DB. My datasource information is mentioned in applicationcontext xml. So I need to retrieve this lookup data after datasource is initialized.