Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<Context>
<Resource name="jdbc/sramp" auth="Container" type="javax.sql.DataSource" username="sa" password=""
driverClassName="org.h2.Driver" url="jdbc:h2:file:overlord-data/sramp"
testWhileIdle="true"
testOnBorrow="true"
testOnReturn="false"
validationQuery="SELECT 1"
validationInterval="30000"
timeBetweenEvictionRunsMillis="30000"
maxActive="100"
minIdle="10"
maxWait="10000"
initialSize="10"
removeAbandonedTimeout="60"
removeAbandoned="true"
logAbandoned="true"
minEvictableIdleTimeMillis="30000"
defaultAutoCommit="true" />
</Context>
<?xml version="1.0" encoding="UTF-8"?>
<infinispan
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:5.2 http://www.infinispan.org/schemas/infinispan-config-5.2.xsd
urn:infinispan:config:jdbc:5.2 http://www.infinispan.org/schemas/infinispan-cachestore-jdbc-config-5.2.xsd"
xmlns="urn:infinispan:config:5.2"
xmlns:jdbc="urn:infinispan:config:jdbc:5.2" >
<global>
</global>
<default>
</default>
<namedCache name="sramp">
<loaders passivation="false" shared="false" preload="false">
<jdbc:stringKeyedJdbcStore xmlns="urn:infinispan:config:jdbc:5.2"
fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
<jdbc:dataSource jndiUrl="java:comp/env/jdbc/sramp" xmlns="urn:infinispan:config:jdbc:5.2"/>
<stringKeyedTable
dropOnExit="false" 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>
</jdbc:stringKeyedJdbcStore>
</loaders>
<transaction
transactionManagerLookupClass="org.infinispan.transaction.lookup.DummyTransactionManagerLookup"
transactionMode="TRANSACTIONAL" lockingMode="PESSIMISTIC" />
</namedCache>
</infinispan>
{
"name" : "sramp",
"jndiName" : "",
"workspaces" : {
"predefined" : ["otherWorkspace"],
"default" : "default",
"allowCreation" : true
},
"security" : {
"anonymous" : {
"roles" : ["readonly","readwrite","admin"],
"useOnFailedLogin" : false
},
"providers" : [
{
"classname" : "org.modeshape.jcr.security.ServletProvider"
}
]
},"storage": {
"cacheName": "sramp",
"cacheConfiguration" : "infinispan-configuration-webapp.xml",
"binaryStorage": {
"type" : "database",
"dataSourceJndiName" : "java:comp/env/jdbc/sramp",
"minimumBinarySizeInBytes" : "${application.min.binary.size:4096}"
}
},"query" : {
"indexStorage" : {
"type" : "filesystem",
"location" : "overlord-data/index",
"lockingStrategy" : "simple",
"fileSystemAccessType" : "auto"
}
}
}
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.