368 lines
17 KiB
XML
Executable File
368 lines
17 KiB
XML
Executable File
<!--
|
|
~ Copyright © 2005 - 2018 TIBCO Software Inc.
|
|
~ http://www.jaspersoft.com.
|
|
~
|
|
~ This program is free software: you can redistribute it and/or modify
|
|
~ it under the terms of the GNU Affero General Public License as published by
|
|
~ the Free Software Foundation, either version 3 of the License, or
|
|
~ (at your option) any later version.
|
|
~
|
|
~ This program is distributed in the hope that it will be useful,
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
~ GNU Affero General Public License for more details.
|
|
~
|
|
~ You should have received a copy of the GNU Affero General Public License
|
|
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
-->
|
|
|
|
<ehcache name="hibernate">
|
|
|
|
<diskStore path="${ehcache.disk.store.dir}/hibernate"/>
|
|
|
|
<!-- Below are four configurations:
|
|
1. No clustering (default)
|
|
2. RMI distribution with autodiscovery based on multicast
|
|
- For this to work IP-Multicasting must be enabled on all nodes
|
|
3. JMS distribution based on ActiveMQ JMS server
|
|
- Make sure you have correct IP:PORT for each providerURL property
|
|
4. AWS distribution utilizing Amazon SNS/SQS services. Using this option might incurr additional costs as Amazon charges customers per API call.
|
|
- note that this is experimental support and that ActiveMQ JMS option also works for AWS and is a preferred method of distribution.
|
|
|
|
********************************************************************************
|
|
* If you have clustering environment comment or remove default "NO CLUSTERING" *
|
|
* segment and uncomment ONE of the options provided *
|
|
* by removing "START" and "END" lines inside the corresponding block *
|
|
* (RMI, JMS or AWS) *
|
|
********************************************************************************
|
|
-->
|
|
<defaultCache
|
|
maxElementsInMemory="10000"
|
|
eternal="false"
|
|
overflowToDisk="false"
|
|
timeToIdleSeconds="3600"
|
|
timeToLiveSeconds="18000"
|
|
diskPersistent="false"
|
|
diskExpiryThreadIntervalSeconds="120"/>
|
|
|
|
<!-- ******************************************************************** NO CLUSTERING *************************************************** -->
|
|
<cache name="defaultRepoCache"
|
|
maxElementsInMemory="10000"
|
|
eternal="false"
|
|
overflowToDisk="false"
|
|
timeToIdleSeconds="36000"
|
|
timeToLiveSeconds="180000"
|
|
diskPersistent="false"
|
|
diskExpiryThreadIntervalSeconds="120"
|
|
statistics="true">
|
|
</cache>
|
|
|
|
<cache name="aclCache"
|
|
maxElementsInMemory="10000"
|
|
eternal="false"
|
|
overflowToDisk="false"
|
|
timeToIdleSeconds="360000"
|
|
timeToLiveSeconds="720000"
|
|
diskPersistent="false">
|
|
</cache>
|
|
<!-- ******************************************************************** END of NO CLUSTERING ******************************************** -->
|
|
|
|
<!-- ******************************************************************** RMI ********************************************************** -->
|
|
<!-- START
|
|
<cacheManagerPeerProviderFactory
|
|
class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
|
|
properties="peerDiscovery=automatic,multicastGroupAddress=228.0.0.1,multicastGroupPort=4446,timeToLive=1"/>
|
|
<cacheManagerPeerListenerFactory
|
|
class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
|
|
properties="port=40011,remoteObjectPort=40012,socketTimeoutMillis=120000"/>
|
|
|
|
<cache name="org.hibernate.cache.StandardQueryCache"
|
|
maxEntriesLocalHeap="5000"
|
|
maxElementsInMemory="5000"
|
|
eternal="false"
|
|
timeToLiveSeconds="120">
|
|
|
|
<cacheEventListenerFactory
|
|
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
|
|
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true,replicateUpdatesViaCopy=false, replicateRemovals=true "/>
|
|
<bootstrapCacheLoaderFactory
|
|
class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
|
|
properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
|
|
|
|
</cache>
|
|
|
|
<cache name="org.hibernate.cache.UpdateTimestampsCache"
|
|
maxEntriesLocalHeap="5000"
|
|
eternal="true">
|
|
|
|
<cacheEventListenerFactory
|
|
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
|
|
properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true,replicateUpdatesViaCopy=true, replicateRemovals=true "/>
|
|
<bootstrapCacheLoaderFactory
|
|
class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
|
|
properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
|
|
</cache>
|
|
|
|
<cache name="defaultRepoCache"
|
|
maxElementsInMemory="10000"
|
|
eternal="false"
|
|
overflowToDisk="false"
|
|
timeToIdleSeconds="36000"
|
|
timeToLiveSeconds="180000"
|
|
diskPersistent="false"
|
|
diskExpiryThreadIntervalSeconds="120"
|
|
statistics="true">
|
|
|
|
<cacheEventListenerFactory
|
|
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
|
|
properties="replicateAsynchronously=true, replicatePuts=false, replicateUpdates=true,replicateUpdatesViaCopy=false, replicateRemovals=true "/>
|
|
<bootstrapCacheLoaderFactory
|
|
class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
|
|
properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
|
|
</cache>
|
|
|
|
<cache name="aclCache"
|
|
maxElementsInMemory="10000"
|
|
eternal="false"
|
|
overflowToDisk="false"
|
|
timeToIdleSeconds="360000"
|
|
timeToLiveSeconds="720000"
|
|
diskPersistent="false">
|
|
|
|
<cacheEventListenerFactory
|
|
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
|
|
properties="replicateAsynchronously=true, replicatePuts=false, replicateUpdates=true,replicateUpdatesViaCopy=false, replicateRemovals=true "/>
|
|
<bootstrapCacheLoaderFactory
|
|
class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
|
|
properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
|
|
|
|
</cache>
|
|
|
|
END -->
|
|
<!-- ******************************************** END of RMI ************************************************ -->
|
|
|
|
<!-- *************************************************** JMS ************************************************ -->
|
|
<!-- START
|
|
<cacheManagerPeerProviderFactory
|
|
class="net.sf.ehcache.distribution.jms.JMSCacheManagerPeerProviderFactory"
|
|
properties="initialContextFactoryName=com.jaspersoft.jasperserver.api.engine.replication.JRSActiveMQInitialContextFactory,
|
|
providerURL=tcp://localhost:61616,
|
|
replicationTopicConnectionFactoryBindingName=topicConnectionFactory,
|
|
replicationTopicBindingName=ehcache,
|
|
getQueueConnectionFactoryBindingName=queueConnectionFactory,
|
|
getQueueBindingName=ehcacheQueue,
|
|
topicConnectionFactoryBindingName=topicConnectionFactory,
|
|
topicBindingName=ehcache"
|
|
propertySeparator=","/>
|
|
|
|
|
|
<cache name="org.hibernate.cache.StandardQueryCache"
|
|
maxEntriesLocalHeap="5000"
|
|
maxElementsInMemory="5000"
|
|
eternal="false"
|
|
timeToLiveSeconds="120">
|
|
|
|
<cacheEventListenerFactory
|
|
class="net.sf.ehcache.distribution.jms.JMSCacheReplicatorFactory"
|
|
properties="replicateAsynchronously=true,
|
|
replicatePuts=true,
|
|
replicateUpdates=true,
|
|
replicateUpdatesViaCopy=false,
|
|
replicateRemovals=true,
|
|
asynchronousReplicationIntervalMillis=1000"
|
|
propertySeparator=","/>
|
|
|
|
<cacheLoaderFactory
|
|
class="net.sf.ehcache.distribution.jms.JMSCacheLoaderFactory"
|
|
properties="initialContextFactoryName=com.jaspersoft.jasperserver.api.engine.replication.JRSActiveMQInitialContextFactory,
|
|
providerURL=tcp://localhost:61616,
|
|
replicationTopicConnectionFactoryBindingName=topicConnectionFactory,
|
|
replicationTopicBindingName=ehcache,
|
|
getQueueConnectionFactoryBindingName=queueConnectionFactory,
|
|
getQueueBindingName=ehcacheQueue,
|
|
topicConnectionFactoryBindingName=topicConnectionFactory,
|
|
topicBindingName=ehcache"
|
|
propertySeparator=","/>
|
|
|
|
</cache>
|
|
|
|
<cache name="org.hibernate.cache.UpdateTimestampsCache"
|
|
maxEntriesLocalHeap="5000"
|
|
eternal="true">
|
|
|
|
<cacheEventListenerFactory
|
|
class="net.sf.ehcache.distribution.jms.JMSCacheReplicatorFactory"
|
|
properties="replicateAsynchronously=true,
|
|
replicatePuts=true,
|
|
replicateUpdates=true,
|
|
replicateUpdatesViaCopy=true,
|
|
replicateRemovals=true,
|
|
asynchronousReplicationIntervalMillis=1000"
|
|
propertySeparator=","/>
|
|
|
|
<cacheLoaderFactory
|
|
class="net.sf.ehcache.distribution.jms.JMSCacheLoaderFactory"
|
|
properties="initialContextFactoryName=com.jaspersoft.jasperserver.api.engine.replication.JRSActiveMQInitialContextFactory,
|
|
providerURL=tcp://localhost:61616,
|
|
replicationTopicConnectionFactoryBindingName=topicConnectionFactory,
|
|
replicationTopicBindingName=ehcache,
|
|
getQueueConnectionFactoryBindingName=queueConnectionFactory,
|
|
getQueueBindingName=ehcacheQueue,
|
|
topicConnectionFactoryBindingName=topicConnectionFactory,
|
|
topicBindingName=ehcache"
|
|
propertySeparator=","/>
|
|
|
|
</cache>
|
|
|
|
<cache name="defaultRepoCache"
|
|
maxElementsInMemory="10000"
|
|
eternal="false"
|
|
overflowToDisk="false"
|
|
timeToIdleSeconds="36000"
|
|
timeToLiveSeconds="180000"
|
|
diskPersistent="false"
|
|
diskExpiryThreadIntervalSeconds="120"
|
|
statistics="true">
|
|
|
|
<cacheEventListenerFactory
|
|
class="net.sf.ehcache.distribution.jms.JMSCacheReplicatorFactory"
|
|
properties="replicateAsynchronously=true,
|
|
replicatePuts=false,
|
|
replicateUpdates=true,
|
|
replicateUpdatesViaCopy=false,
|
|
replicateRemovals=true,
|
|
asynchronousReplicationIntervalMillis=1000"
|
|
propertySeparator=","/>
|
|
|
|
<cacheLoaderFactory
|
|
class="net.sf.ehcache.distribution.jms.JMSCacheLoaderFactory"
|
|
properties="initialContextFactoryName=com.jaspersoft.jasperserver.api.engine.replication.JRSActiveMQInitialContextFactory,
|
|
providerURL=tcp://localhost:61616,
|
|
replicationTopicConnectionFactoryBindingName=topicConnectionFactory,
|
|
replicationTopicBindingName=ehcache,
|
|
getQueueConnectionFactoryBindingName=queueConnectionFactory,
|
|
getQueueBindingName=ehcacheQueue,
|
|
topicConnectionFactoryBindingName=topicConnectionFactory,
|
|
topicBindingName=ehcache"
|
|
propertySeparator=","/>
|
|
|
|
</cache>
|
|
|
|
<cache name="aclCache"
|
|
maxElementsInMemory="10000"
|
|
eternal="false"
|
|
overflowToDisk="false"
|
|
timeToIdleSeconds="360000"
|
|
timeToLiveSeconds="720000"
|
|
diskPersistent="false">
|
|
|
|
<cacheEventListenerFactory
|
|
class="net.sf.ehcache.distribution.jms.JMSCacheReplicatorFactory"
|
|
properties="replicateAsynchronously=true,
|
|
replicatePuts=false,
|
|
replicateUpdates=true,
|
|
replicateUpdatesViaCopy=false,
|
|
replicateRemovals=true,
|
|
asynchronousReplicationIntervalMillis=1000"
|
|
propertySeparator=","/>
|
|
|
|
<cacheLoaderFactory
|
|
class="net.sf.ehcache.distribution.jms.JMSCacheLoaderFactory"
|
|
properties="initialContextFactoryName=com.jaspersoft.jasperserver.api.engine.replication.JRSActiveMQInitialContextFactory,
|
|
providerURL=tcp://localhost:61616,
|
|
replicationTopicConnectionFactoryBindingName=topicMConnectionFactory,
|
|
replicationTopicBindingName=ehcacheM,
|
|
getQueueConnectionFactoryBindingName=queueMConnectionFactory,
|
|
getQueueBindingName=ehcacheMQueue,
|
|
topicConnectionFactoryBindingName=topicMConnectionFactory,
|
|
topicBindingName=ehcacheM"
|
|
propertySeparator=","/>
|
|
</cache>
|
|
END -->
|
|
<!-- ***************************************************** END of JMS **************************************************************************** -->
|
|
|
|
<!-- ********************************************************** AWS **************************************************************************** -->
|
|
<!-- START
|
|
<cacheManagerPeerProviderFactory
|
|
class="com.jaspersoft.jasperserver.api.engine.replication.JRSNevadoCacheManagerPeerProviderFactory"
|
|
properties=""
|
|
propertySeparator="," />
|
|
|
|
<cache name="org.hibernate.cache.StandardQueryCache"
|
|
maxEntriesLocalHeap="5000"
|
|
maxElementsInMemory="5000"
|
|
eternal="false"
|
|
timeToLiveSeconds="120">
|
|
|
|
<cacheEventListenerFactory
|
|
class="net.sf.ehcache.distribution.jms.JMSCacheReplicatorFactory"
|
|
properties="replicateAsynchronously=true,
|
|
replicatePuts=false,
|
|
replicateUpdates=true,
|
|
replicateUpdatesViaCopy=false,
|
|
replicateRemovals=true,
|
|
asynchronousReplicationIntervalMillis=1000"
|
|
propertySeparator=","/>
|
|
</cache>
|
|
|
|
<cache name="org.hibernate.cache.UpdateTimestampsCache"
|
|
maxEntriesLocalHeap="5000"
|
|
eternal="true">
|
|
|
|
<cacheEventListenerFactory
|
|
class="net.sf.ehcache.distribution.jms.JMSCacheReplicatorFactory"
|
|
properties="replicateAsynchronously=true,
|
|
replicatePuts=true,
|
|
replicatePutsViaCopy=true,
|
|
replicateUpdates=false,
|
|
replicateUpdatesViaCopy=false,
|
|
replicateRemovals=true,
|
|
asynchronousReplicationIntervalMillis=100"
|
|
propertySeparator=","/>
|
|
</cache>
|
|
|
|
<cache name="defaultRepoCache"
|
|
maxElementsInMemory="10000"
|
|
eternal="false"
|
|
overflowToDisk="false"
|
|
timeToIdleSeconds="36000"
|
|
timeToLiveSeconds="180000"
|
|
diskPersistent="false"
|
|
diskExpiryThreadIntervalSeconds="120"
|
|
statistics="true">
|
|
|
|
<cacheEventListenerFactory
|
|
class="net.sf.ehcache.distribution.jms.JMSCacheReplicatorFactory"
|
|
properties="replicateAsynchronously=true,
|
|
replicatePuts=false,
|
|
replicateUpdates=true,
|
|
replicateUpdatesViaCopy=false,
|
|
replicateRemovals=true,
|
|
asynchronousReplicationIntervalMillis=1000"
|
|
propertySeparator=","/>
|
|
</cache>
|
|
|
|
<cache name="aclCache"
|
|
maxElementsInMemory="10000"
|
|
eternal="false"
|
|
overflowToDisk="false"
|
|
timeToIdleSeconds="360000"
|
|
timeToLiveSeconds="720000"
|
|
diskPersistent="false">
|
|
|
|
<cacheEventListenerFactory
|
|
class="net.sf.ehcache.distribution.jms.JMSCacheReplicatorFactory"
|
|
properties="replicateAsynchronously=true,
|
|
replicatePuts=false,
|
|
replicateUpdates=true,
|
|
replicateUpdatesViaCopy=false,
|
|
replicateRemovals=true,
|
|
asynchronousReplicationIntervalMillis=1000"
|
|
propertySeparator=","/>
|
|
</cache>
|
|
END -->
|
|
<!-- ***************************************************** END of AWS ***************************************************************************** -->
|
|
|
|
</ehcache>
|
|
|