Details
-
Bug
-
Resolution: Done
-
Major
-
7.1.0.Alpha1
Description
Problem: Can't start a custom cache container without starting Hibernate.
I now realize that I could not get at the Infinispan cache via JNDI because of AS7-1656. I've decided to simply start it eagerly.
However, if I start an Infinispan cache eagerly then I get an exception that transactions are required and a transaction manager has not been properly configured. Seems that the default Infinispan cache configuration is transactional, but the allowed values to override this do NOT include non transactional like the standard Infinispan configuration does.
Caused by: org.infinispan.CacheException: This is transactional cache but no transaction manager could be found. Configure the transaction manager lookup properly.
The only way to get this to work is to add a persistence.xml file and configure the transaction manager and second level cache. I need to first deploy my application. Then I can go back and add the infinispan resource (via Maven). Since Hibernate is up and running, my custom cache container is able to start.
Solution: Remove the coupling between Hibernate/Transactions and Infinispan.