1 Reply Latest reply on Jul 20, 2006 3:18 PM by manik

    Configuring multiple roots within JBoss cache

    ramdas

      Our application needs to have multiple roots within a single JBoss Treecache. The way we are implementing this in the configuration is by specifying multiple mbean elements in the replSync-service.xml viz.

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


      Is this the best way to configure multiple trees in the same cache?
      Is there a way by which the common elements within these multiple mbeans be put into a common area and then sourced in - the benefit being, any change to the common attributes within the multiple trees, be done in one place?

      We are using JBoss cache within JBoss AS version 3.2.6, JBoss cache version 1.2.3

      Thanks

        • 1. Re: Configuring multiple roots within JBoss cache
          manik

          You will end up with multiple instances with what you are doing, not necessarily what you want - especially if they form a cluster between themselves!

          Simply organise your Fqns to create 2 separate regions. E.g., /region1/stuff and /region2/stuff