I have a running JBoss 4.2.3.GA cluster running. My application, not originally designed for a cluster, has some Singleton objects that hold in memory code tables. This tables rarely change, but when they do, I need to update the whole cluster. Since moving to the cluster I face the problem that when such a change occurs it only occurs on the node which it was done on and the other nodes are not aware.
I need to redesign these objects. It seems the best solution is to keep these code tables in a shared cache, i.e. the treecahce used by the cluster.
1. Can some one direct me to a code example on how this is done in a cluster. 2. Does anyone think I should use a different solution for this problem?