[teiid-issues] [JBoss JIRA] (TEIID-2266) When using JNDI to obtain cache, need to support EmbeddedCacheManager

Van Halbert (JIRA) jira-events at lists.jboss.org
Fri Oct 19 10:28:01 EDT 2012


    [ https://issues.jboss.org/browse/TEIID-2266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12728025#comment-12728025 ] 

Van Halbert commented on TEIID-2266:
------------------------------------

As part of the quick start, there's a servlet app that gets deployed, for which loads and previews the cache.
                
> When using JNDI to obtain cache, need to support EmbeddedCacheManager 
> ----------------------------------------------------------------------
>
>                 Key: TEIID-2266
>                 URL: https://issues.jboss.org/browse/TEIID-2266
>             Project: Teiid
>          Issue Type: Bug
>          Components: Misc. Connectors
>    Affects Versions: 8.2
>            Reporter: Van Halbert
>            Assignee: Van Halbert
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the teiid-issues mailing list