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>
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