EH Cache XML configuration

The Canvas framework uses EH Cache library internally for in-memory caching of large result sets that have to be sorted, filtered or grouped based on the user needs. For an end application development, the caching is a transparent activity. However, there may be cases where you may want to control some of the configurations that the EH Cache system expects. Towards that Canvas framework expects the application to provide the EH Cache configuration that it has to use.
The following code segment is a typical EH Cache configuration XML that can be provided. For details on the XML specification, refer to the documentation provided for EH Cache.

<?xml version="1.0" encoding="UTF-8"?>
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:noNamespaceSchemaLocation="ehcache.xsd" updateCheck="true"
	monitoring="autodetect" dynamicConfig="true"> 
	<!-- Simple cache -->
		<defaultCache maxEntriesLocalHeap="10000" eternal="true"
		timeToIdleSeconds="120" timeToLiveSeconds="120" diskSpoolBufferSizeMB="30"
		maxEntriesLocalDisk="10000000" diskExpiryThreadIntervalSeconds="120"
		memoryStoreEvictionPolicy="LRU" statistics="false">
		</defaultCache>
</ehcache> 


The provision of EH Cache configuration to CT is a mandatory task if the application decides to enable Cached data access while configuring Apps. In case you are not sure of what needs to be done, you can just pass the above XML itself as the EH Cache configuration for your application.