Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-2266

When using JNDI to obtain cache, need to support EmbeddedCacheManager

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.2
    • 8.2
    • Misc. Connectors
    • None

      When building the quick start for infinispan, the test application is using the following injection:

      <code>
      @Produces
      @Resource(lookup = "java:jboss/infinispan/container/teiid-infinispan-quickstart")
      private CacheContainer container;
      </code>

      But when the Infinispan connector tries to get the container from JNDI, getting a ClassCastException: org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager cannot be cast to org.infinispan.api.BasicCacheContainer

      So the injection must be handling getting the container, for which wasn't taken into consideration. So the connector-infinispan needs to be changed accordingly.

              van.halbert Van Halbert (Inactive)
              van.halbert Van Halbert (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: