Skip to content

Instantly share code, notes, and snippets.

@tristantarrant
Created August 30, 2012 16:09
Show Gist options
  • Select an option

  • Save tristantarrant/3531913 to your computer and use it in GitHub Desktop.

Select an option

Save tristantarrant/3531913 to your computer and use it in GitHub Desktop.
Infinispan 5.2 JDBC cache loader XML configuration
<loaders>
<stringKeyedJdbcStore xmlns="urn:infinispan:config:jdbc:5.2"
fetchPersistentState="false" ignoreModifications="false"
purgeOnStartup="false"
connectionFactoryClass="org.infinispan.loaders.jdbc.connectionfactory.PooledConnectionFactory"
connectionUrl="jdbc:h2:mem:infinispan_binary_based;DB_CLOSE_DELAY=-1"
username="sa" driverClass="org.h2.Driver">
<stringKeyedTable dropOnExit="true" createOnStart="true"
prefix="ISPN_STRING_TABLE">
<idColumn name="ID_COLUMN" type="VARCHAR(255)" />
<dataColumn name="DATA_COLUMN" type="BINARY" />
<timestampColumn name="TIMESTAMP_COLUMN" type="BIGINT" />
</stringKeyedTable>
</stringKeyedJdbcStore>
</loaders>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment