Skip to content

Instantly share code, notes, and snippets.

@galderz
Created September 1, 2011 10:26
Show Gist options
  • Select an option

  • Save galderz/1185897 to your computer and use it in GitHub Desktop.

Select an option

Save galderz/1185897 to your computer and use it in GitHub Desktop.
<subsystem default-cache-container="default" xmlns="urn:jboss:domain:infinispan:1.0">
<cache-container name="default" default-cache="default" listener-executor="infinispan-listener" eviction-executor="infinispan-eviction" replication-queue-executor="infinispan-repl-queue">
<transport executor="infinispan-transport" lock-timeout="240000"/>
<local-cache name="default" start="EAGER" batching="false" indexing="NONE">
<locking isolation="REPEATABLE_READ" acquire-timeout="20000" concurrency-level="500" striping="false"/>
<eviction strategy="FIFO" max-entries="100" interval="2000"/>
<store class="org.infinispan.loaders.jdbc.stringbased.JdbcStringBasedCacheStore" passivation="true">
<property name="stringsTableNamePrefix">ISPN_STRING_TABLE</property>
<property name="idColumnName">ID_COLUMN</property>
<property name="dataColumnName">DATA_COLUMN</property>
<property name="timestampColumnName">TIMESTAMP_COLUMN</property>
<property name="timestampColumnType">BIGINT</property>
<property name="connectionFactoryClass">org.infinispan.loaders.jdbc.connectionfactory.PooledConnectionFactory</property>
<property name="connectionUrl">jdbc:h2:mem:string_based_db;DB_CLOSE_DELAY=-1</property>
<property name="userName">sa</property>
<property name="driverClass">org.h2.Driver</property>
<property name="idColumnType">VARCHAR(255)</property>
<property name="dataColumnType">BINARY</property>
<property name="dropTableOnExit">true</property>
<property name="createTableOnStart">true</property>
</store>
</local-cache>
</cache-container>
</subsystem>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment