Skip to content

Instantly share code, notes, and snippets.

@j1cken j1cken/gist:2416139
Created Apr 18, 2012

Embed
What would you like to do?
JBoss AS7.1.1 Cache Container Config
<cache-container name="my-cache-container" default-cache="mapper">
<transport stack="tcp" cluster="mapper-cluster" lock-timeout="60000"/>
<distributed-cache name="mapper" owners="2" mode="SYNC">
<eviction max-entries="5000" strategy="LRU"/>
<locking isolation="REPEATABLE_READ"/>
<transaction stop-timeout="10000" mode="FULL_XA" locking="OPTIMISTIC"/>
<state-transfer enabled="true" timeout="60000"/>
<string-keyed-jdbc-store datasource="java:jboss/datasources/PGDS" shared="true"
preload="false" passivation="false" fetch-state="true" purge="false">
<property name="databaseType">
POSTGRES
</property>
<string-keyed-table>
<id-column name="id" type="text"/>
<data-column name="data" type="bytea"/>
<timestamp-column name="version" type="bigint"/>
</string-keyed-table>
</string-keyed-jdbc-store>
</distributed-cache>
</cache-container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.