Infinispan with Spring, casting from cache failing
问题 I have Spring 1.4 app which is deployed to WildFly 10, and it is using Infinispan 8.1 built in with WildFly. I have managed to deploy the app properly, and this is the configuration for the Infinispan: 1) CacheManager @Bean public CacheManager cacheManager() throws Exception { JndiTemplate jndiTemplate = new JndiTemplate(); EmbeddedCacheManager embededCacheManager = (EmbeddedCacheManager) jndiTemplate.lookup("java:jboss/infinispan/container/CONTAINER"); SpringEmbeddedCacheManager cacheManager