Infispan configuration in JBoss AS7 by using the file jboss-beans.xml file used in JBoss AS5.
ankitceo2 Feb 10, 2014 7:05 AMHi All,
I am trying to migrate the cache configuration from JBoss AS5 to JBoss AS7. In JBoss AS5 we have a file called jboss-beans.xml having the following structure.
===========================================
jboss-beans.xml
===========================================
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="urn:jboss:bean-deployer:2.0">
<bean name="ServicesCacheConfig" class="org.jboss.cache.config.Configuration">
<property name="runtimeConfig">
<bean name="RuntimeConfig" class="org.jboss.cache.config.RuntimeConfig">
<!--
<property name="transactionManager">
<inject bean="TransactionManager" property="transactionManager"/>
</property>
-->
</bean>
</property>
<property name="cacheMode">LOCAL</property>
<property name="lockAcquisitionTimeout">15000</property>
<property name="isolationLevel">REPEATABLE_READ</property>
<!-- EJBs use JBoss Cache eviction -->
<property name="evictionConfig">
<bean name="EvictionPolicy" class="org.jboss.cache.config.EvictionConfig">
<property name="wakeupInterval">15000</property>
<property name="defaultEvictionRegionConfig">
<bean class="org.jboss.cache.config.EvictionRegionConfig">
<property name="regionName">/</property>
<property name="evictionAlgorithmConfig">
<bean class="org.jboss.cache.eviction.LRUAlgorithmConfig">
<property name="maxNodes">20000</property>
<property name="timeToLive">-1</property>
<property name="minTimeToLive">0</property>
</bean>
</property>
</bean>
</property>
<property name="evictionRegionConfigs">
<list>
<bean class="org.jboss.cache.config.EvictionRegionConfig">
<property name="regionName">/nxmim</property>
<property name="evictionAlgorithmConfig">
<bean class="org.jboss.cache.eviction.LRUAlgorithmConfig">
<property name="maxNodes">-1</property>
<property name="timeToLive">-1</property>
<property name="minTimeToLive">0</property>
</bean>
</property>
</bean>
<bean class="org.jboss.cache.config.EvictionRegionConfig">
<property name="regionName">/nxmo/inst/NxCategory</property>
<property name="evictionAlgorithmConfig">
<bean class="org.jboss.cache.eviction.LRUAlgorithmConfig">
<property name="maxNodes">-1</property>
<property name="timeToLive">-1</property>
<property name="minTimeToLive">0</property>
</bean>
</property>
</bean>
</list>
</property>
</bean>
</property>
</bean>
<bean name="ServicesPojoCacheMBean" class="org.jboss.cache.pojo.jmx.PojoCacheJmxWrapper">
<annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="osi.cache:service=PojoCache", exposedInterface=org.jboss.cache.pojo.jmx.PojoCacheJmxWrapperMBean.class, registerDirectly=true)</annotation>
<property name="configuration"><inject bean="ServicesCacheConfig" /></property>
</bean>
</deployment>
=================================================================================================
Now I do not have a complete migration path to JBoss AS7 which now uses Infispan. Do we need to map each every tag in "jboss-beans.xml" to some configuration in standalone.xml or may be some other configuration file or most part of this jboss-beans.xml can be scrapped as it has been kind of automated in JBoss AS7 configuration which , as of now seems, after reading about Infispan(??)?
Please help me by providing some initial points to get started with this migration.
Thanks
Ankit