<infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:infinispan:config:5.2 http://www.infinispan.org/schemas/infinispan-config-5.2.xsd" xmlns="urn:infinispan:config:5.2"> ... </infinispan>
In order to use all of the latest features, make sure you change the namespace declaration at the top of your XML configuration files as follows:
<infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:infinispan:config:5.2 http://www.infinispan.org/schemas/infinispan-config-5.2.xsd" xmlns="urn:infinispan:config:5.2"> ... </infinispan>
The default transaction enlistment model has changed (ISPN-1284) from XAResounce to Synchronization. Also now, if the XAResounce enlistment is used, then recovery is enabled by default.
In practical terms, if you were using the default values, this should not cause any backward compatibility issues but an increase in performance of about 5-7%. However in order to use the old configuration defaults, you need to configure the following:
<transaction useSynchronization="false"> <recovery enabled="false"/> </transaction>
or the programmatic configuration equivalent:
ConfigurationBuilder builder = new ConfigurationBuilder(); builder.transaction().useSynchronization(false).recovery().enabled(false)
Cache Loader and Store configuration has changed greatly in Infinispan 5.2. Please refer to the Cache Loaders and Stores documentation.
The concept of Virtual Nodes doesn't exist anymore in Infinispan 5.2 and has been replaced by Segments. Please refer to the Clustering modes documentation