Skip to content

Instantly share code, notes, and snippets.

@j1cken
Created April 18, 2012 19:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save j1cken/2416139 to your computer and use it in GitHub Desktop.
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