I had been going through the article https://docs.jboss.org/author/display/ISPN/Implementing+standalone+JPA+JTA+Hibernate+application+outside+J2EE+server+using+Infinispan+2nd+level+cache for using infinispan as 2nd level cache outside J2EE container and got confused with the below statement.
"IMPORTANT NOTE: From Hibernate 4.0.1 onwards, Infinispan now interacts as a synchronization rather than as an XA resource with the transaction manager when used as second-level cache, so there's no longer need to apply any of the changes suggested below!"
Does this mean that post hibernate 4.0.1, JTA transaction is not mandatory for using infinispan? If possible, Please also share the configuration for using infinispan cache with Hibernate 4 and above?
JTA transaction manager is necessary, but the configuration/code shown there belongs to when Infinispan needed to interact with the TM as a XA resource (as opposed to a synchronization).
The configuration neeeded depends on the environment: i.e. you're an SE app, you're an app that runs in AS7, you're an app that runs in X app server...etc