Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

C:\Documents and Settings\jry\Escritorio\prueba-mbeans.

xml jueves, 10 de febrero de 2011 19:15

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

<deployment xmlns="urn:jboss:bean-deployer:2.0">

<!-- First we create a Configuration object for the cache -->


<bean name="PruebaCacheConfig"
class="org.jboss.cache.config.Configuration">

<!-- Externally injected services -->


<property name="runtimeConfig">
<bean name="PruebaCacheRuntimeConfig" class="org.jboss.cache.config.RuntimeConfig">
<property name="transactionManager">
<inject bean="jboss:service=TransactionManager"
property="TransactionManager"/>
</property>
<property name="muxChannelFactory"><inject bean="JChannelFactory"/></property>
</bean>
</property>

<property name="multiplexerStack">udp</property>

<property name="clusterName">Prueba-EntityCache</property>

<!--
Node locking level : SERIALIZABLE
REPEATABLE_READ (default)
READ_COMMITTED
READ_UNCOMMITTED
NONE
-->
<property name="isolationLevel">REPEATABLE_READ</property>

<!-- Valid modes are LOCAL


REPL_ASYNC
REPL_SYNC
-->
<property name="cacheMode">REPL_SYNC</property>

<!-- The max amount of time (in milliseconds) we wait until the
initial state (ie. the contents of the cache) are retrieved from
existing members in a clustered environment
-->
<property name="initialStateRetrievalTimeout">15000</property>

<!-- Number of milliseconds to wait until all responses for a


synchronous call have been received.
-->
<property name="syncReplTimeout">20000</property>

<!-- Max number of milliseconds to wait for a lock acquisition -->


<property name="lockAcquisitionTimeout">15000</property>

<property name="exposeManagementStatistics">true</property>

<!-- Must be true if any entity deployment uses a scoped classloader -->
<property name="useRegionBasedMarshalling">true</property>
<!-- Must match the value of "useRegionBasedMarshalling" -->

-1-
C:\Documents and Settings\jry\Escritorio\prueba-mbeans.xml jueves, 10 de febrero de 2011 19:15

<property name="inactiveOnStartup">true</property>

<!-- Specific eviction policy configurations. This is LRU -->


<property name="evictionConfig">
<bean name="PruebaEvictionConfig"
class="org.jboss.cache.config.EvictionConfig">
<property name="defaultEvictionPolicyClass">
org.jboss.cache.eviction.LRUPolicy
</property>
<property name="wakeupIntervalSeconds">5</property>
<property name="evictionRegionConfigs">
<list>
<bean name="PruebaDefaultEvictionRegionConfig"
class="org.jboss.cache.config.EvictionRegionConfig">
<property name="regionName">/_default_</property>
<property name="evictionPolicyConfig">
<bean name="PruebaDefaultLRUConfig"
class="org.jboss.cache.eviction.LRUConfiguration">
<property name="maxNodes">5000</property>
<property name="timeToLiveSeconds">1000</property>
</bean>
</property>
</bean>
</list>
</property>
</bean>
</property>

</bean>

<!-- Factory to build the Cache. -->


<bean name="DefaultCacheFactory" class="org.jboss.cache.DefaultCacheFactory">
<constructor factoryClass="org.jboss.cache.DefaultCacheFactory"
factoryMethod="getInstance"/>
</bean>

<!-- The cache itself -->


<bean name="PruebaCache" class="org.jboss.cache.CacheImpl">

<constructor factoryMethod="createnewInstance">
<factory bean="DefaultCacheFactory"/>
<parameter><inject bean="PruebaCacheConfig"/></parameter>
<parameter>false</false>
</constructor>

</bean>

<!-- JMX Management -->


<bean name="PruebaCacheJmxWrapper" class="org.jboss.cache.jmx.CacheJmxWrapper">

<annotation>
@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.cache:service=TreeCache",
exposedInterface=org.jboss.cache.jmx.CacheJmxWrapperMBean.class,
registerDirectly=true)</annotation>

<constructor>

-2-
C:\Documents and Settings\jry\Escritorio\prueba-mbeans.xml jueves, 10 de febrero de 2011 19:15

<parameter><inject bean="PruebaCache"/></parameter>
</constructor>

</bean>

</deployment>

-3-

You might also like