infinispan

Exception using mongodb as infinispan cache store

谁说我不能喝 提交于 2020-02-15 12:40:30
问题 I want to use MongoDb as cacche store for the infinispan to persist the data evicted according to policy i am posting the snippet of the code that is causing exception along with the exception ConfigurationBuilder config = new ConfigurationBuilder(); MongoDBCacheStore strgBuilder = new MongoDBCacheStore(); ConfigurationBuilder b = new ConfigurationBuilder(); b.persistence() .addStore(MongoDBCacheStoreConfigurationBuilder.class) .host( "localhost" ) .port( 27017 ) .timeout( 1500 )

Infinispan 7.1 Cassandra cache-store

戏子无情 提交于 2020-01-25 11:03:06
问题 I have a very simple cache of type String, Long in Infinispan. I would like to persist this cache to cassandra. I have installed Infinispan 7.1 Server and I have a cassandra instance running. I've looked at http://infinispan.org/docs/cachestores/cassandra/ which lists two xml excerpts. Since I am completely new to Infinispan, I have no idea where to add the listed xml. Is there an example Infinispan 7.1 server installation somewhere where this is setup and working? EDIT 1: I am able to use

Web app won't join Infinispan cluster

萝らか妹 提交于 2020-01-23 10:36:26
问题 I've been playing around with Infinispan lately, having had no previous experience with Infinispan. I've come across an interesting problem and I wondered if anyone might be able to shed some light on it. I have a standalone Java application (GridGrabber.jar) that bundles the Infinispan jars and has a class to add/remove and list items from the grid. Within the application I create the CacheManager as follows: DefaultCacheManager m = new DefaultCacheManager("cluster.xml"); The application

Infinispan, the versioned operation returning incorrect results

放肆的年华 提交于 2020-01-16 03:43:04
问题 We are planning to use Infinispan in client server mode. The architecture has many clients (client 1, client 2 and so on ) and a distributed infinispan network. We need to update the data in the cache periodically, say every5 hours . All clients could be able to update the data. If one of them (say client 1) is updating we need to prevent others doing the same job. Once the updating is complete all clients wait another 5 hour and, any of them will do the the updating again. Infinispan

How to fix “Unable to acquire lock after 15 seconds” errors in Wildfly

青春壹個敷衍的年華 提交于 2020-01-01 08:27:09
问题 I have a web application that is <distributable/> , but also deployed to stand alone instances of Wildfly for local development work. Sometimes we have calls to the backend that can stall for a few seconds, which often leads to exceptions like the one shown below. How can I fix this given that I have no control over long running backend requests? 14:55:04,808 ERROR [org.infinispan.interceptors.InvocationContextInterceptor] (default task-6) ISPN000136: Error executing command

Infinispan Jgroups Crashes after war deploying

社会主义新天地 提交于 2019-12-29 09:52:17
问题 I'm working on Wildfly 9 with Infinispan 7.2.3. I'm facing up to a strange problem related to distributed cache: On the application server i have N deployed wars exposing REST services Each service code has the common duty to check if a CacheManager si already present on JNDI, if yes, it uses it otherwise i creates a new one and the bind it to the JNDI. So every war works with a unique CacheManager instance. The Infinispan CacheManager is configured in distributed mode. The infinispan and

Timeout exception after upgrading to infispan 8.2

前提是你 提交于 2019-12-25 07:15:23
问题 Infinispan times out when I try to start a cache after upgrading to infinispan 8.2.2. I use the following configuration: Configuration createConfiguration(boolean persistent) { LockingConfigurationBuilder confBuilder = new ConfigurationBuilder().clustering().cacheMode(CacheMode.REPL_SYNC).sync() .replTimeout(60, TimeUnit.SECONDS) .persistence() .passivation(Boolean.FALSE) .addClusterLoader().preload(false).shared(Boolean.FALSE) .remoteCallTimeout(60, TimeUnit.SECONDS) .transaction()

Infinispan - synchronization between node in a cluster

 ̄綄美尐妖づ 提交于 2019-12-25 03:36:30
问题 have you any idea of when we add a new node in a existant cluster in infinispan , how many times the synchronizations between nodes will take ? and if try to call a service in my cache before the synchronization are terminated , i will have an error ? thank you for your help. 回答1: Synchronization, or state transfer, is non-blocking, so you can continue executing operations while that happens. 来源: https://stackoverflow.com/questions/53779011/infinispan-synchronization-between-node-in-a-cluster

Migrating Infinispan xml configuration from 6.x to 7.x

爷,独闯天下 提交于 2019-12-25 01:37:49
问题 I've been using Infinispan 6.x and I have a couple of XML configuration files. Now I want to migrate to 7.x, but I'm having exceptions when the new version tries to parse the old configuration files. Here is my configuration file: <?xml version="1.0" encoding="UTF-8"?> <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"> <global> <globalJmxStatistics enabled="false"

CDI Beans Serialization issue on Cluster

本小妞迷上赌 提交于 2019-12-24 17:28:22
问题 I'm facing a big issue when I tried to run my EJB+CDI+JSF application on Wildfly 9.2 (Also I tried 10.0) on Standalone Clustered mode. The issue happens when my cluster container tries to deserialize my session scoped CDI beans, it throws the following exception : 2016-02-06 02:17:22,650 ERROR [io.undertow.request] (default task-9) UT005071: Undertow request failed HttpServerExchange{ GET /login.xhtml request {Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8]