views:

48

answers:

0

Hi, in order to keep certain application variables I may need to change when the application is running without having to restart it, I'm thinking in implementing a Grails service and a Quartz job so every X minutes, the service reloads the entire "parameters" table - and I query the service for a parameter's value.

Now, is this a good desicion ? Does hibernate implement this in its own way (so when I do a, for instance, findByName() it reads a cached value - that gets reloaded every X minutes - instead of querying the DB ?

Thanks.