开发者

Caching in JAVA that copes in a weblogic clustered set up

开发者 https://www.devze.com 2023-02-02 19:27 出处:网络
I\'m maint开发者_JAVA技巧aining a Java web application that uses a java.util.Hashtable to cache values.

I'm maint开发者_JAVA技巧aining a Java web application that uses a java.util.Hashtable to cache values.

This works fine. However when deployed to weblogic under a clustered envrionment this means that I have cache refresh problems due to the fact that (I think) in this set up each node has its own instance of java.util.Hashtable

Is there a way to work around this in a clustered setup. If not can anyone suggest a more robust alternative?


Each node will have its own hashmap, that's for sure.

For reliable caching on clustered environment, use some robust solution around, like JBoss Cache or ehcache.

0

精彩评论

暂无评论...
验证码 换一张
取 消