0 Replies Latest reply on May 8, 2015 4:19 AM by siro_nl

    Is there any way how to create a TreeCache on JBoss Wildfly?

    siro_nl

      Hi all,

       

       

      Is there any documentation how to create a TreeCache on Wildfly? We are busy with a migration from Jboss 4 to Wildfly and

      have to migrate our TreeCache. Does anybody know how to implement a TreeCache in Wildfly? Below our xml configuration in j.

       

       

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

      <server>

          <classpath codebase="./lib" archives="jboss-cache.jar, jgroups.jar"/>

       

       

          <mbean code="org.jboss.cache.TreeCache" name="jboss.cache:service=TreeCache">

              <depends>jboss:service=Naming</depends>

              <depends>jboss:service=TransactionManager</depends>

              <attribute name="TransactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</attribute>

              <attribute name="IsolationLevel">REPEATABLE_READ</attribute>

              <attribute name="CacheMode">LOCAL</attribute>

            

              <attribute name="EvictionPolicyClass">org.jboss.cache.eviction.LRUPolicy</attribute>      

              <attribute name="EvictionPolicyConfig">

                  <config>

                      <attribute name="wakeUpIntervalSeconds">15</attribute>

                    

                      <region name="/true-container/global/large">

                          <attribute name="maxNodes">250</attribute>        

                          <attribute name="timeToLiveSeconds">3600</attribute>         

                      </region>              

       

       

                      <region name="/true-container/global/medium">

                          <attribute name="maxNodes">350</attribute>                     

                          <attribute name="timeToLiveSeconds">3600</attribute>           

                      </region>              

                                 

                      <region name="/true-container/global/small">

                          <attribute name="maxNodes">500</attribute>                  

                          <attribute name="timeToLiveSeconds">3600</attribute>  

                      </region>              

                    

                      <region name="/true-container/appwar/sessions">

                          <attribute name="maxNodes">500</attribute>                 

                          <attribute name="timeToLiveSeconds">3600</attribute>

                      </region>

       

       

                      <region name="/_default_">

                          <attribute name="maxNodes">250</attribute>                   

                          <attribute name="timeToLiveSeconds">900</attribute>        

                      </region>

                  </config>

              </attribute>

          </mbean>

       

       

          <mbean code="org.jboss.invocation.jrmp.server.JRMPProxyFactory" name="mydomain:service=proxyFactory,type=jrmp,target=factory">

              <attribute name="InvokerName">jboss:service=invoker,type=jrmp</attribute>

              <attribute name="TargetName">jboss.cache:service=TreeCache</attribute>

              <attribute name="JndiName">TEST/ServerCache</attribute>

              <attribute name="InvokeTargetMethod">true</attribute>

              <attribute name="ExportedInterface">org.jboss.cache.TreeCacheMBean</attribute>

              <attribute name="ClientInterceptors">

                  <iterceptors>

                      <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>

                      <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>

                      <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>

                  </iterceptors>

              </attribute>

              <depends>jboss:service=invoker,type=jrmp</depends>

              <depends>jboss.cache:service=TreeCache</depends>

          </mbean>

      </server>

       

       

       

       

      Please help! Thanks in advance.

       

       

      Thanks,

       

       

      siro_nl