google Analytics

Thursday, July 8, 2010

JBOSS Tree chache Service Examples































1 comment:

  1. <?xml version="1.0" encoding="UTF-8"?>
    <jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns="urn:jboss:jbosscache-core:config:3.1">
        <!--
            isolation levels supported: READ_COMMITTED and REPEATABLE_READ
            nodeLockingSchemes: mvcc, pessimistic (deprecated), optimistic
            (deprecated)
        -->
        <locking isolationLevel="REPEATABLE_READ"
            lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000"
            nodeLockingScheme="mvcc" writeSkewCheck="false" useLockStriping="true"
            concurrencyLevel="500" />
           
        <!--
            Used to register a transaction manager and participate in ongoing
            transactions.
        -->
        <transaction
            transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"
            syncRollbackPhase="false" syncCommitPhase="false" />
           
        <!--
            Used to register JMX statistics in any available MBean server
        -->
        <jmxStatistics enabled="false" />

        <startup regionsInactiveOnStartup="true" />
       
        <!--
            Used to register JVM shutdown hooks. hookBehavior: DEFAULT, REGISTER,
            DONT_REGISTER
        -->
        <shutdown hookBehavior="DEFAULT" />
       
        <!--
            Used to define async listener notification thread pool size
        -->
        <listeners asyncPoolSize="1" asyncQueueSize="100000" />
       
        <!--
            Used to enable invocation batching and allow the use of
            Cache.startBatch()/endBatch() methods.
        -->
        <invocationBatching enabled="false" />
       
        <!--
            serialization related configuration, used for replication and cache
            loading
        -->
        <serialization objectInputStreamPoolSize="12"
            objectOutputStreamPoolSize="14" version="3.0.0"
            marshallerClass="org.jboss.cache.marshall.VersionAwareMarshaller"
            useLazyDeserialization="false" useRegionBasedMarshalling="false" />
       
        <!--
            Eviction configuration. WakeupInterval defines how often the eviction thread runs, in
            milliseconds. 0 means the eviction thread will never run.
        -->
    </jbosscache>

    ReplyDelete