-
Bug
-
Resolution: Done
-
Blocker
-
3.0.1.Final
-
None
-
Workaround Exists
-
Although ModeShape 3.1 is built to run with Infinispan 5.1.2.FINAL, it is possible to run with later versions of Infinispan, including 5.1.8.Final and even 5.2 (the latest we tested was 5.2.0.Beta6).
However, Infinispan 5.2.x will now report an error if multiple cache containers are started within the same process. Each ModeShape repository uses one cache container for the repository content, but this container is specified in the repository's JSON configuration file and can easily be changed to include the following fragment in the XML:
<infinispan ...> <global> <globalJmxStatistics jmsDomain="myRepository"/> <!-- etc. --> </global> <!-- etc. --> </infinispan>
where "myRepository" matches the name of the ModeShape repository.
However, each ModeShape repository also internally uses another cache container for caches of the node objects. This cache container is configured with by the "org.modeshape.jcr.default_workspace_cache-config.xml" file (on the classpath), though a different file can be specified in the repository's JSON configuration file via the "workspaces.cacheContainer" field.
When running with Infinispan 5.2, however, using the built-in "org.modeshape.jcr.default_workspace_cache-config.xml" file results in an exception that prevents the repository from starting.
See the Infinispan documentation for more detail.