Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2397

Infinispan subsystem is not functional unless the jpa one activated.

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

            pferraro@redhat.com Paul Ferraro
            shane_dev_jira Shane Johnson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: