I'm looking for the solution of loading/refreshing variables from database. I consider for static block and a static HashMap which contains the variables loaded from the database. But I'm confusing the issue when I reload the HashMap. Because my application might run on cluster environment. I'm afraid of refreshing couldn't apply on all the machines. Has anyone encountered this problem? Please give me some advices!