10.5.4.2. JdbcStringBasedCacheStore Remote Configuration for Multiple Nodes
The following is a configuration for the
JdbcStringBasedCacheStore in JBoss Data Grid's Remote Client-Server mode. This configuration is used when multiple nodes must be used.
<subsystem xmlns="urn:jboss:domain:infinispan:1.2" default-cache-container="default">
<cache-container name="default"
default-cache="memcachedCache"
listener-executor="infinispan-listener"
start="EAGER">
<transport stack="${stack}"
executor="infinispan-transport"
lock-timeout="240000"/>
<replicated-cache name="memcachedCache"
start="EAGER"
mode="SYNC"
batching="false"
indexing="NONE"
remote-timeout="60000">
<locking isolation="REPEATABLE_READ"
acquire-timeout="30000"
concurrency-level="1000"
striping="false" />
<transaction mode="NONE" />
<state-transfer enabled="true"
timeout="60000" />
<string-keyed-jdbc-store datasource="java:jboss/datasources/JdbcDS"
fetch-state="true"
passivation="false"
preload="false"
purge="false"
shared="false"
singleton="true">
<property name="databaseType">${database.type}</property>
<string-keyed-table prefix="JDG">
<id-column name="id"
type="${id.column.type}"/>
<data-column name="datum"
type="${data.column.type}"/>
<timestamp-column name="version"
type="${timestamp.column.type}"/>
</string-keyed-table>
</string-keyed-jdbc-store>
</replicated-cache>
</cache-container>
</subsystem>
<subsystem xmlns="urn:jboss:domain:infinispan:1.2" default-cache-container="default">
<cache-container name="default"
default-cache="memcachedCache"
listener-executor="infinispan-listener"
start="EAGER">
<transport stack="${stack}"
executor="infinispan-transport"
lock-timeout="240000"/>
<replicated-cache name="memcachedCache"
start="EAGER"
mode="SYNC"
batching="false"
indexing="NONE"
remote-timeout="60000">
<locking isolation="REPEATABLE_READ"
acquire-timeout="30000"
concurrency-level="1000"
striping="false" />
<transaction mode="NONE" />
<state-transfer enabled="true"
timeout="60000" />
<string-keyed-jdbc-store datasource="java:jboss/datasources/JdbcDS"
fetch-state="true"
passivation="false"
preload="false"
purge="false"
shared="false"
singleton="true">
<property name="databaseType">${database.type}</property>
<string-keyed-table prefix="JDG">
<id-column name="id"
type="${id.column.type}"/>
<data-column name="datum"
type="${data.column.type}"/>
<timestamp-column name="version"
type="${timestamp.column.type}"/>
</string-keyed-table>
</string-keyed-jdbc-store>
</replicated-cache>
</cache-container>
</subsystem>