Pergunta

I have app that is running on two machines, and I am using the ehcache. I see that whenever I update the cache, it only updates either of the machines ehcache but not both. How can I update both? Is that even possible?

I was using EJB to do the caching but I changed it because I didn't want to use EJB just because I needed cache.

Foi útil?

Solução

Are you using Enterprise Ehcache or the free open source version? The enterprise version is capable of distributed updates, not the open source one (which is standalone).

Outras dicas

You may need to expose some sort of URL to update the cache directly on the nodes themselves instead of the URL that routes to each node.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top