Sharing data between two instances in a load balanced java web application

Posted by rabbit on Stack Overflow See other posts from Stack Overflow or by rabbit
Published on 2010-04-16T11:07:49Z Indexed on 2010/04/16 11:13 UTC
Read the original article Hit count: 143

Filed under:

I want to cache data in a java web application deployed on multiple instances. We are using spring 2.5.6. What is the easiest caching library to configure and use with spring? I have heard of EH Cache, but the configuration is too cumbersome. The requirement is that a spring scheduler will run and set some flags. These flags are accessible from all load balanced instances. But since the scheduler runs only on one instance the flag is set only on that jvm. So how do i make these updated flag values available to all load balanced instances?

© Stack Overflow or respective owner

Related posts about ehcache