1
豆Decleration:如何在Jboss中集成infinispan缓存7 1 1最终?
bean id="cacheManager" class="org.infinispan.spring.provider.SpringEmbeddedCacheManagerFactoryBean"
p:configurationFileLocation="classpath:infinispan.xml" ..
infinispan.xml
<infinispan
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:5.1 http://www.infinispan.org/schemas/infinispan-config-5.1.xsd"
xmlns="urn:infinispan:config:5.1">
<global>
<transport clusterName="CASCluster"/>
<globalJmxStatistics enabled="true"/>
</global>
<default>
<jmxStatistics enabled="true"/>
<clustering mode="distribution">
<hash numOwners="2" rehashRpcTimeout="120000"/>
<sync/>
</clustering>
</default>
<namedCache name="mtx.infinispan.global">
<eviction strategy="LIRS" maxEntries="50000" />
</namedCache>
<namedCache name="books">
<eviction strategy="LIRS" maxEntries="50000" />
</namedCache>
<namedCache name="scheduleprofiletemplates">
<eviction maxEntries="1000000" strategy="LIRS" />
<loaders passivation="false" shared="false" preload="true">
<!-- We can have multiple cache loaders, which get chained -->
<loader class="org.infinispan.loaders.file.FileCacheStore"
fetchPersistentState="true" purgerThreads="3" purgeSynchronously="true"
ignoreModifications="false" purgeOnStartup="false">
<!-- See the documentation for more configuration examples and flags. -->
<properties>
<property name="location" value="/home/cas/infinispanCache" />
</properties>
</loader>
</loaders>
</namedCache>
我想将应用程序部署JBoss群集中,使得在一个节点创建的缓存访问/复制到其他节点也...
我是我们使用Jboss Domain模式full-ha进行部署....我有HornetQ,Mod_cluster在同一个群集上正常工作。
通过google搜索,我知道它实现通过JNDI ....你可以请求电话如何修改XMl文件到achiiev这....我必须创建4个命名缓存(在哪里创建?在配置文件或Jboss domain.xml中)。
在此先感谢
豆decleration如下 2.创建queus ... \t \t <豆ID = “的CacheManager” 类=“org.infinispan.spring.provider.SpringEmbeddedCacheManagerFactoryBean “ p:configurationFileLocation =”classpath:infinispan.xml“/> –