Skip to content

Instantly share code, notes, and snippets.

Created April 17, 2014 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/11002740 to your computer and use it in GitHub Desktop.
Save anonymous/11002740 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<infinispan
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:6.0 http://www.infinispan.org/schemas/infinispan-config-6.0.xsd
urn:infinispan:config:jdbc:6.0 http://www.infinispan.org/schemas/infinispan-cachestore-jdbc-config-6.0.xsd"
xmlns="urn:infinispan:config:6.0"
xmlns:jdbc="urn:infinispan:config:jdbc:6.0">
<default>
<persistence passivation="false">
<jdbc:stringKeyedJdbcStore>
<!-- Provide the JDBC connection settings -->
<jdbc:connectionPool
connectionUrl="jdbc:postgresql://127.0.0.1:5432/test"
driverClass="org.postgresql.Driver"
username=""
password=""/>
<!-- Provide the table information where cache will persist itself -->
<jdbc:stringKeyedTable prefix="cache_entry" createOnStart="true">
<jdbc:idColumn name="id" type="VARCHAR (255)"/>
<jdbc:dataColumn name="datum" type="BYTEA"/>
<jdbc:timestampColumn name="version" type="BIGINT"/>
</jdbc:stringKeyedTable>
</jdbc:stringKeyedJdbcStore>
</persistence>
</default>
</infinispan>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment