infinispan

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

久未见 提交于 2019-12-05 21:38:42
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 application to run queries against an Infinispan cache. I am successfully adding objects to the cache. The

Spring, Infinispan and JBoss 7 integration

◇◆丶佛笑我妖孽 提交于 2019-12-05 19:36:27
I'm trying to use JBoss 7 Infinispan cache as a communication form (something more later) of two war-deployed spring-based apps. I'm having a problem with accessing the JBoss managed cache managers. When I use DefaultCacheManager cacheManager = new DefaultCacheManager(); cache = cacheManager.getCache(); on each of two applications, I get two separate caches. Is there any way to access the cache created by JBoss server without using the @ManagedBean annotation and Java EE standard at all ? It's done. Thanks to Kazaag, I used JNDI. JndiTemplate jndiTemplate = new JndiTemplate(); jndiTemplate

Web app won't join Infinispan cluster

末鹿安然 提交于 2019-12-05 19:31:16
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 runs on the command line with java -jar GridGrabber.jar and works fine, and when I start two instances at

JBoss 系列二十八:JBoss Data Grid(Infinispan)CarMart 示例

余生长醉 提交于 2019-12-05 18:09:03
JBoss Data Grid是Red Hat中间件产品( http://www.redhat.com/products/jbossenterprisemiddleware/data-grid/ ),JBoss Data Grid是基于开源社区产品Infinispan( http://infinispan.org/ )。 企业版的JBoss Data Grid与社区版的Infinispan代码完全一样,所以本部分内容基于Infinispan进行。 示例概述 Infinispan可以作为内存数据库使用,Infinispan CarMart示例是一个简单的Web应用程序,使用Infinispan代替传统的关系数据库,CarMart提供了以下功能: 列出所有车 添加新的车 删除某一特定的车 查看Infinispan的统计信息 CarMart示例中每个车的信息保存在Infinispan中,我们通过三种方式运行CarMart示例:远程客户端-服务器端模式,本地模式。其中远程客户端-服务器端模式我们使用Infinispan HotRod协议存取数据,本地模式是事务性的通过Infinispan接口存取数据。CarMart示例源代码位于 cluster/infinispan/carmart 目录之下: 以远程客户端-服务器端模式运行Infinispan CarMart示例 根据 JBoss

How to view and edit Infinispan cached data remotely

北慕城南 提交于 2019-12-05 06:58:33
I have an Infinispan cache embedded in a WildFly 8.2 server. I added to standalone.xml inside <subsystem xmlns="urn:jboss:domain:infinispan:2.0"> : <cache-container name="mycache" default-cache="cachedb"> <transport lock-timeout="600000" /> <replicated-cache name="cachedb" batching="true" mode="SYNC" /> </cache-container> ...and injected the cache container like this: @Singleton @Startup public class CacheManager { @Resource(lookup = "java:jboss/infinispan/container/mycache") private CacheContainer container; . . . . } I can use the cache in my applications. However the requirement is to see

Infinispan distributed cluster with shared index

。_饼干妹妹 提交于 2019-12-04 20:33:19
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) it just starts to fail. My infinispan config: <global> <transport clusterName="SomeCluster">

“experimental” status of JGroups Master/Slave backend for hibernate search and infinispan

喜夏-厌秋 提交于 2019-12-04 20:15:07
We use hibernate-search for fulltext indexing of our entities in wildfly 8.2 (using the hibernate/hibernate-search and infinspan libraries inlcuded with wildfly 8.2). Running as standalone node or in a domain with a dedicated hibernate search master and the org.hibernate.search.store.impl.FSDirectoryProvider this has been working fine for several years (and jboss versions). We would now like to deploy this system to a HA clustered environment with wildfly 8.2 running behind a load balancing proxy. We want to have a dynamically scalable cluster without a point of failure in the sense of a

infinispan cache server expiration failure

旧街凉风 提交于 2019-12-04 15:46:02
I am using infinispan-5.1.6.FINAL as a remote-cache server and hot-rod protocol to access it. but found the is not working as intended, i.e cached value of a key is not evicted after 1ms as per the config below <infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:infinispan="urn:infinispan:config:5.1" xsi:schemaLocation="urn:config:5.1 http://www.infinispan.org/schemas/infinispan-config-5.1.xsd"> <global > <globalJmxStatistics enabled="true"/> </global> <namedCache name="my-cache"> <expiration lifespan="1" maxIdle="1" reaperEnabled="true" wakeUpInterval="1" /> </namedCache>

Infinispan Operational modes

无人久伴 提交于 2019-12-04 10:47:49
I have recently started taking a look into Infinispan as our caching layer. After reading through the operation modes in Infinispan as mentioned below. Embedded mode: This is when you start Infinispan within the same JVM as your applications. Client-server mode: This is when you start a remote Infinispan instance and connect to it using a variety of different protocols. Firstly, I am confuse now which will be best suited to my application from the above two modes. I have a very simple use case, we have a client side code that will make a call to our REST Service using the main VIP of the

Configuring Infinispan CacheProvider in Seam 2.3

微笑、不失礼 提交于 2019-12-02 03:29:12
I am trying to migrate my Seam 2.3 application to use Infinispan for caching within JBoss AS7. I've looked at the Blog example within the Seam 2.3 distribution, and have copied the jGroupsConfig.xml and infinispan.xml files into my web application's source path and modified my components.xml to specify the appropriate cache provider. However, when I run something like this... public class MyClass { ... @In CacheProvider cacheProvider; ... public void myMethod() { this.cacheProvider.get("abcd"); } ... } ...I get an error saying the Infinispan cache cannot be started. There are no further errors