[jboss-cvs] JBossCache/etc ...

Brian Stansberry brian.stansberry at jboss.com
Wed May 23 02:34:59 EDT 2007


  User: bstansberry
  Date: 07/05/23 02:34:59

  Modified:    etc      tcp-cacheserver-service.xml
  Log:
  [JBCACHE-1053] Example with CacheJmxWrapper injection
  
  Revision  Changes    Path
  1.2       +44 -3     JBossCache/etc/tcp-cacheserver-service.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: tcp-cacheserver-service.xml
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/etc/tcp-cacheserver-service.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- tcp-cacheserver-service.xml	18 Jan 2006 10:42:22 -0000	1.1
  +++ tcp-cacheserver-service.xml	23 May 2007 06:34:59 -0000	1.2
  @@ -5,13 +5,54 @@
      <classpath codebase="./lib" archives="jboss-cache.jar"/>
   
      <mbean code="org.jboss.cache.loader.tcp.TcpCacheServer" name="jboss.cache:service=TcpCacheServer">
  -      <depends optional-attribute-name="Cache"
  +      <depends optional-attribute-name="CacheJmxWrapper"
                  proxy-type="attribute">jboss.cache:service=TreeCache</depends>
         <attribute name="BindAddress">${jboss.bind.address:localhost}</attribute>
         <attribute name="Port">7500</attribute>
  -      <attribute name="MBeanServerName"></attribute>
  -      <!--<attribute name="CacheName">jboss.cache:service=TreeCache</attribute>-->
      </mbean>
   
  +   <mbean code="org.jboss.cache.jmx.CacheLegacyJmxWrapper"
  +          name="jboss.cache:service=TreeCache">
  +
  +      <depends>jboss:service=Naming</depends>
  +      <depends>jboss:service=TransactionManager</depends>
  +
  +      <!-- Configure the TransactionManager -->
  +      <attribute name="TransactionManagerLookupClass">org.jboss.cache.transaction.BatchModeTransactionManagerLookup</attribute>
  +
  +
  +      <!--
  +          Node locking level : SERIALIZABLE
  +                               REPEATABLE_READ (default)
  +                               READ_COMMITTED
  +                               READ_UNCOMMITTED
  +                               NONE
  +      -->
  +      <attribute name="IsolationLevel">REPEATABLE_READ</attribute>
  +
  +      <!--
  +           Valid modes are LOCAL
  +                           REPL_ASYNC
  +                           REPL_SYNC
  +                           INVALIDATION_ASYNC
  +                           INVALIDATION_SYNC
  +      -->
  +      <attribute name="CacheMode">LOCAL</attribute>
  +
  +      <!-- Name of cluster. Needs to be the same for all TreeCache nodes in a
  +           cluster in order to find each other.
  +      -->
  +      <attribute name="ClusterName">JBossCache-Cluster</attribute>
  +
  +      <!-- JGroups protocol stack properties NOT NEEDED since CacheMode is LOCAL -->
  +
  +      <!--
  +         Indicate whether to use region based marshalling or not. Set this to true if you are running under a scoped
  +         class loader, e.g., inside an application server. Default is "false".
  +      -->
  +      <attribute name="UseRegionBasedMarshalling">false</attribute>
  +   </mbean>
  +   
  +
   
   </server>
  
  
  



More information about the jboss-cvs-commits mailing list