【发布时间】:2013-06-23 11:56:09
【问题描述】:
我有一个部署在 Jboss AS 7 中的应用程序在不同服务器的多个节点上运行,我正在尝试使用 infinispan 5.2 来缓存数据。问题是缓存值没有在不同的服务器之间复制,它只能从同一个节点访问。
这里给出了用于缓存的配置
<cache-container name="cluster" aliases="ha-partition" default-cache="cache" jndi-name="java:jboss/infinispan/container/cluster">
<transport lock-timeout="10000"/>
<distributed-cache name="cache" mode="SYNC" start="EAGER" batching="false">
<locking isolation="REPEATABLE_READ"/>
<eviction strategy="LIRS" max-entries="1000"/>
<expiration lifespan="300000" />
</distributed-cache>
</cache-container>
我也尝试过使用复制缓存而不是分布式缓存。
标签是在我的 web.xml 中定义的。
【问题讨论】:
-
可能节点没有形成集群?检查日志消息...
-
我们在 JBOS EAP 6.1 中面临同样的问题。找到原因了吗?
-
你在说哪个 web.xml?您的意思是 standalone.xml 或 domain.xml 而不是 web.xml - 对吧?也许集群节点不相互交谈。在 server.log 中查找诸如“received new cluster view”之类的消息。
标签: jboss7.x infinispan