infinispan_configuration.xml

63 lines | 1.961 kB Blame History Raw Download
<?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"
	xmlns="urn:infinispan:config:6.0">

	<global>
	
		 <globalJmxStatistics enabled="false" jmxDomain="infinispan"/>
	
	</global>

	<default />

	<namedCache name="StoreRepository">
		<invocationBatching enabled="true"/>
		<!-- disable jmx in prod -->
		<jmxStatistics enabled="false"/>
		<persistence passivation="false">		
			  
		       <store class="org.infinispan.persistence.file.SingleFileStore" fetchPersistentState="false"
	               ignoreModifications="false" purgeOnStartup="false" shared="false" preload="false">
	               <properties>
	                 <property name="location" value="./files/store"/>
	               </properties>
	          </store>
	          	
		</persistence>
		
		<eviction maxEntries="10" strategy="LRU"/>

		<transaction
			transactionManagerLookupClass="org.infinispan.transaction.lookup.DummyTransactionManagerLookup"
			transactionMode="TRANSACTIONAL" lockingMode="OPTIMISTIC" />

	</namedCache>
	
	<namedCache name="FilesRepository">
		 <invocationBatching enabled="true"/>
		 <!-- disable jmx in prod -->
		 <jmxStatistics enabled="true"/>
	     <persistence passivation="false">
	          <store class="org.infinispan.persistence.file.SingleFileStore" fetchPersistentState="false"
	               ignoreModifications="false" purgeOnStartup="false" shared="false" preload="false">
	            <properties>
	                 <property name="location" value="./files/repos"/>
	               </properties>
	          </store>
	     </persistence>
	     
	     <transaction

			transactionManagerLookupClass="org.infinispan.transaction.lookup.DummyTransactionManagerLookup"
			transactionMode="TRANSACTIONAL" lockingMode="OPTIMISTIC" />
	     
	</namedCache>
	
	

</infinispan>