Hi Guys,

I am trying to deploy the JBoss Cache 3.x as JMX in AS 5.0.GA as per the 
instructions given in the doco 
http://www.jboss.org/file-access/default/members/jbosscache/freezone/docs/3.0.1.GA/userguide_en/html_single/index.html#deployment.microcontainer

Here is my beans.xml 


<?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="ExampleCacheConfig"
  |           
  |           class="org.jboss.cache.config.Configuration">
  |             
  |             
  |             
  |             <!-- Externally injected services -->  
  |             
  |             <property name="runtimeConfig">
  |                     
  |                     <bean name="ExampleCacheRuntimeConfig" 
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">Example-EntityCache</property>
  |             
  |             
  |             
  |             <property name="isolationLevel">REPEATABLE_READ</property>
  |             
  |             
  |             
  |             <property name="cacheMode">REPL_SYNC</property>
  |             
  |             
  |             
  |             <property name="initialStateRetrievalTimeout">15000</property>
  |             
  |             
  |             
  |             <property name="syncReplTimeout">20000</property>
  |             
  |             
  |             
  |             <property name="lockAcquisitionTimeout">15000</property>
  |             
  |             
  |             
  |             <property name="exposeManagementStatistics">true</property>
  |             
  |    </bean>
  |     
  |     
  |     <!-- Factory to build the Cache. -->
  |     
  |     <bean name="DefaultCacheFactory" 
class="org.jboss.cache.DefaultCacheFactory">      
  |             
  |             <constructor factoryClass="org.jboss.cache.DefaultCacheFactory" 
/>
  |             
  |     </bean>
  |     
  |     
  |     
  |     <!-- The cache itself -->
  |     
  |     <bean name="ExampleCache" class="org.jboss.cache.CacheImpl">
  |             
  |             
  |             
  |             <constructor factoryMethod="createnewInstance">
  |                     
  |                     <factory bean="DefaultCacheFactory"/>
  |                     
  |                     <parameter><inject 
bean="ExampleCacheConfig"/></parameter>
  |                     
  |                     <parameter>false</parameter>
  |                     
  |             </constructor>
  |             
  |             
  |             
  |     </bean>
  |     
  |     
  |     
  |     <!-- JMX Management -->
  |     
  |     <bean name="ExampleCacheJmxWrapper" 
class="org.jboss.cache.jmx.CacheJmxWrapper">
  |             
  |             
  |             
  |             
<annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.cache:service=ExampleTreeCache",
 
  |                     
  |                     
exposedInterface=org.jboss.cache.jmx.CacheJmxWrapperMBean.class, 
  |                     
  |                     registerDirectly=true)</annotation>
  |             
  |             
  |             
  |             <constructor>
  |                     
  |                     <parameter><inject bean="ExampleCache"/></parameter>
  |                     
  |             </constructor>
  |             
  |             
  |             
  |     </bean>
  |     
  |     
  |     
  | </deployment>   

However on server start-up I get exceptions

I am new to JBC 3.x as well as JBoss Micro Container. Can you please point me 
to a working *-benas.xml to deploy JBC as JMX bean.

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201694#4201694

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201694
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to