Anda di halaman 1dari 3

<?xml version="1.0" encoding="UTF-8"?

>

<!-- ===================================================================== -->

<!-- -->

<!-- JBossCache Service Configuration -->

<!-- Configuration XML file for JBossCache 3.x -->

<!-- -->

<!-- ===================================================================== -->

<jbosscache xmlns="urn:jboss:jbosscache-core:config:3.0">

<!-- perCache -> differrent EntryFactory-->

<locking isolationLevel="REPEATABLE_READ" lockParentForChildInsertRemove="true"


lockAcquisitionTimeout="10234"

nodeLockingScheme="mvcc" writeSkewCheck="false" concurrencyLevel="21"/>

<!-- perCM -->

<transaction
transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"

syncRollbackPhase="true" syncCommitPhase="true"/>

<!-- per CM-->

<!-- serialization related configuration, used for replication and cache loading -->

<!--<serialization objectInputStreamPoolSize="12" objectOutputStreamPoolSize="14" version="1.2.4"-->

<!--marshallerClass="some.Clazz" useLazyDeserialization="true"
useRegionBasedMarshalling="true"/>-->

<!-- per cache, 1) algo/cache 2) what/cache 3) collecting data 4) timer thread / per CM -->

<eviction wakeUpInterval="5">

<default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm" eventQueueSize="200000">

<property name="maxNodes" value="50000" />

<property name="timeToLive" value="-1" />

</default>

<!--<region name="/org/jboss/data2">
<property name="timeToLive" value="1002" />

</region>-->

<region name="/org/jboss/test/data1" algorithmClass="org.jboss.cache.eviction.LRUAlgorithm"


eventQueueSize="200000">

<property name="maxNodes" value="5000" />

<property name="timeToLive" value="10000" />

</region>

<region name="/org/jboss/test/data2" algorithmClass="org.jboss.cache.eviction.FIFOAlgorithm"


eventQueueSize="200000">

<property name="maxNodes" value="5000" />

<property name="minTimeToLive" value="10000" />

</region>

<region name="/org/jboss/test/data3" algorithmClass="org.jboss.cache.eviction.MRUAlgorithm"


eventQueueSize="200000">

<property name="maxNodes" value="5000" />

<property name="minTimeToLive" value="10000" />

</region>

<region name="/org/jboss/test/data4" algorithmClass="org.jboss.cache.eviction.LFUAlgorithm"


eventQueueSize="200000">

<property name="maxNodes" value="5000" />

<property name="minTimeToLive" value="10000"/>

</region>

</eviction>

<!-- Cache loader config block -->

<!-- if passivation is true, only the first cache loader is used; the rest are ignored -->

<!-- <loaders passivation="false" shared="false">

<preload>

--><!-- Fqns to preload --><!--

<node fqn="/org/jboss/test/data0"/>

</preload>

--><!-- if passivation is true, only the first cache loader is used; the rest are ignored --><!--
<loader class="org.jboss.cache.loader.JDBCCacheLoader" async="false"
fetchPersistentState="true"

ignoreModifications="false" purgeOnStartup="false">

<properties>

cache.jdbc.driver=com.mysql.jdbc.Driver

cache.jdbc.url=jdbc:mysql://localhost:3306/goldex

cache.jdbc.user=root

cache.jdbc.password=password

cache.jdbc.table.name=jbosscache

cache.jdbc.table.create=true

cache.jdbc.table.drop=true

cache.jdbc.table.primarykey=jbosscache_pk

cache.jdbc.fqn.column=fqn

cache.jdbc.fqn.type=VARCHAR(255)

cache.jdbc.node.column=node

cache.jdbc.node.type=BLOB

cache.jdbc.parent.column=parent

</properties>

</loader>

</loaders>-->

</jbosscache>

Anda mungkin juga menyukai