aspose file tools
The moose likes Other Application Frameworks and the fly likes Fetch lookup data from database during app startup in spring. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Reply Bookmark "Fetch lookup data from database during app startup in spring." Watch "Fetch lookup data from database during app startup in spring." New topic
Author

Fetch lookup data from database during app startup in spring.

sudheshna Iyer
Ranch Hand

Joined: Aug 20, 2004
Posts: 66
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.

What is the right procedure for achieving this?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Fetch lookup data from database during app startup in spring.
 
Similar Threads
creating db2 datasource
Spring & Hibernate on Geronimo
Resource Injection on DataSource throws NullPointerException
DataSource null in DWR
ORACLE XA DataSource Problem in WebSphere 5.1