I am currently working on a webservice application using java 6 along with its inbuilt JAX-WS feature and JPA(Hibernate). The java based computational application is very database intensive and we have a lot of database roundtrips. A significant piece of these database roundtrips are to fetch master data spanning acros a bunch of tables which is static in nature and at most can change once in 2 years.
We feel the master data is a good candidate to be cached in memory rather than retrieved from the database for every web service call.
My question is as part of the webservice lifecycle at what point can i trigger a call to pre-load all the master data and cache it. Also it would be good if experienced folks in the caching space can shed some light on how to go about caching all the master data in an eager fashion using JPA Hibernate