infinispan

Infinispan with Spring, casting from cache failing

怎甘沉沦 提交于 2019-12-23 05:16:15
问题 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

Unable to query Infinispan on JBoss 7 due to SearchFactoryIntegrator not being in the registry

回眸只為那壹抹淺笑 提交于 2019-12-22 10:26:48
问题 TL:DR I'm getting the following error and I can see no reason for it, indexing is enabled, and the SearchFactoryIntegrator is on the classpath for everything that needs to see it. Indexing was not enabled on this cache. interface org.hibernate.search.spi.SearchFactoryIntegrator not found in registry Long Version: JBoss version: 7.1.1 FINAL Infinispan version: 5.16 (upgraded from 5.1.2 JBoss ships with in attempts to solve issue) Java Version: 1.7 I am attempting to build a simple test

Infinispan distributed cluster with shared index

孤人 提交于 2019-12-21 23:27:12
问题 Does anybody have a working example of how to configure a cluster of nodes to share an index using the infinispan directory provider? All the documentation on Infinispan (the documentation is seriously lacking btw) implies that it should be as easy as having some properties set but no matter how I try I cannot get it to work. The nodes in the cluster find eachother fine and I can do get operations on one node and get object that were put on another. But as soon as I do queries (use the index)

Infinispan file store with pre-loaded data

半世苍凉 提交于 2019-12-13 06:16:40
问题 I am using infinispan as cache provider. I have a flat file containing key (long) value (string) pairs. Upon application load time, i want an embedded infinispan cache to start with flat file as the storage so that the contents of the flat file is the system of record and the contents of the file is cached by infinispan. As new records get added to cache, i want the flat file to be appended. Is it possible with infinispan? 回答1: Principially yes, you have to implement you own cache loader

Wildfly 10 in cluster tries to serialize JSP with org.infinispan.commons.marshall.NotSerializableException

♀尐吖头ヾ 提交于 2019-12-13 03:24:23
问题 I'm trying to use my application with following code in JPS <c:forEach var="area" items="#{MissingSearchBean.workingAreas}"> <h:commandButton value="#{area.workingAreaName}(#{area.count})" action="#{MissingSearchBean.selectWorkingArea(area.workingAreaName)}" styleClass="commandButton" /> </c:forEach> inside wilfly 10. Everything works fine, but when I open view, containing code above I see following error in logs: Caused by: org.infinispan.commons.marshall.NotSerializableException: javax

How to configure Amazon S3 as remote cache store for Hibernate Search 4.5.3

旧巷老猫 提交于 2019-12-13 02:48:51
问题 I have configured Hibernate Search to use infinispan and use File System based Cache Store to persist the indexes in file system instead of memory. Now, I wish to configure S3 instead of File System, but I am not able to find the correct configuration for this. My infinispan.xml file is: <infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:infinispan:config:6.0 http://www.infinispan.org/schemas/infinispan-config-6.0.xsd" xmlns="urn:infinispan:config:6.0">

infinispan cache.put() throws null pointer exception even when values put are not null

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 00:23:52
问题 trying to add content to infinispan cache and I get null pointer exception when i use the put method. Mine is a JSF web application. We are trying to achieve session replication using wildfly 13. import org.infinispan.Cache; public class index extends AbstractPageBean implements java.io.Serializable { @Resource(lookup = "java:jboss/infinispan/cache/web/web_repl") Cache<String, String> ilsCache; public Cache<String, String> getCache() { return ilsCache; } public void prerender() { ilsCache.put

How to use Infinispan query with JBoss7.1

喜夏-厌秋 提交于 2019-12-12 04:49:57
问题 I have an Infinispan cache that I created through JBoss7.1 web interface. It is configured as an indexed, distributed cache. In my jboss-deployment-structure.xml file I have added dependencies on org.infinispan and org.hibernate so I have access to my cache. I have also added a maven dependency on the following: <dependency> <groupId>org.infinispan</groupId> <artifactId>infinispan-core</artifactId> <version>5.1.7.Final</version> <scope>provided</scope> </dependency> <dependency> <groupId>org

infinispan cluster of a predefined set of IP Addresses

女生的网名这么多〃 提交于 2019-12-12 04:37:43
问题 I am using infinispan to distribute the cache over multiple nodes using multicast which is working fine. Unfortunately, according to the System Admin requirements they don't want to allow multicast and they gave me a set of the possible node IP addresses. Is there a way programatically or via infinispan.xml or jgroups.xml to define the set of IP Addresses of the nodes instead of auto discovery? If not is there an alternative cache that fit the same requirement? 回答1: You need to adjust JGroups

JGROUPS Transport remoting start error using Infinispan

喜夏-厌秋 提交于 2019-12-12 03:37:00
问题 In my use case I developed N webapplications, each of which uses Infinispan shared cache and JGroups as transport layer. When a webapplication starts up, it creates a cachemanager object and registers it into the JNDI of the application server. The next started webcapplication check the JNDI and if it finds a cachemanager already binded by another webapplication it uses it with a simple lookup calls. This way the first webapplication instantiating the distributed cache manager should be the