I am currently building an application that want to have a HashMap act as a cache of the system. It is fine when in a single server environment. However, when putting the application in the WAS6 clustered environment, the cache is not synchronized.
I want to know if there is any way to have the cache synchronized? Thanks.
What exactly are you trying to cache, and why do you need to cache it?
In a clustered WebSphere environment, the HttpSession is clustered for you, and the data stored in the session is highly optimized for client access. Leave the caching for the system is my best advice. People much smarter and better looking then you and I have implemented it. You might be trying to re-engineer a solution that is already quite stable and reliable.