infinispan

Exception using mongodb as infinispan cache store

送分小仙女□ 提交于 2019-12-02 02:40:46
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 ) .acknowledgment( 0 ) .username( "" ) .password( "" ) .database( "infinispan_cachestore" ) .collection( "entries" );

Infinispan JPA 2nd level cache defaults

泄露秘密 提交于 2019-12-01 20:14:00
问题 I'm trying to configure Infinispan as a hibernate 2nd level cache. Everything is fine, but I want to tweak the default configuration, i.e. the values that all caches shared. Caches are automatically created for entities annotated with @Cache , and I can customize them one by one in infinispan.xml by <distributed-cache-configuratoin> . However, I'd like to have default values (e.g. eviction strategy) for all of these caches. Another thing is, I want to mark all these generated caches as

Infinispan - set per Entity expiration.lifespan

隐身守侯 提交于 2019-12-01 06:25:34
问题 I have a java web application deployed on Jboss 6.1.0, that uses infinispan 5.2.6.Final. I'm trying to set a per Entity specific expiration.lifespan following this guide http://infinispan.org/docs/5.2.x/user_guide/user_guide.html#_advanced_configuration_2 for my Entity bean com.myenterprise.myproject.dal.ejb.entity.RefStatus. The guide states the following: You can also override eviction/expiration settings on a per entity/collection type basis in such way that the overriden settings only

Infinispan Jgroups Crashes after war deploying

隐身守侯 提交于 2019-11-29 18:08:07
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 jgroups are provided from the application server. After a re-deploy operation (undploy and deploy) of all

PSQLException: current transaction is aborted, commands ignored until end of transaction block

蹲街弑〆低调 提交于 2019-11-28 03:10:19
I am seeing the following (truncated) stacktrace in the server.log file of JBoss 7.1.1 Final: Caused by: org.postgresql.util.PSQLException: ERROR: current transaction is aborted, commands ignored until end of transaction block at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2102) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1835) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:512) at org.postgresql.jdbc2

PSQLException: current transaction is aborted, commands ignored until end of transaction block

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-26 18:54:45
问题 I am seeing the following (truncated) stacktrace in the server.log file of JBoss 7.1.1 Final: Caused by: org.postgresql.util.PSQLException: ERROR: current transaction is aborted, commands ignored until end of transaction block at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2102) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1835) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257) at org