Questions tagged [spring-data-gemfire]

Spring Data GemFire focuses on integrating Spring Framework's powerful, non-invasive programming model and concepts with Pivotal GemFire, simplifying configuration, development and providing high-level abstractions.

0
votes
2answers
29 views

Pivotal GemFire 9.1.1: Replicated Region not created in cluster

I have a GemFire cluster with 2 Locators and 2 Servers in two unix machines. I am running a Spring Boot app which joins the GemFire cluster as a peer and tries to create Replicated Regions, loading ...
0
votes
1answer
23 views

Can I have two @ClientCacheApplication in the same Spring Boot Application?

Can I have two @ClientCacheApplication instances in the same Spring Boot application? I have two classes: PeopleDataAccess and JobDataAccess. Both of them are a @ClientCacheApplication. @Service @...
2
votes
2answers
74 views

Pivotal gemfire Index creation taking too much time

We are using Pivotal Gemfire as a cache for our data. Recently we migrated from gemfire 8.2.1 to 9.5.1 with exactly same regions, data and indexes. But the indexes creation on particularly one region ...
0
votes
2answers
38 views

How to implement a GemFire CacheListener in Spring Boot using Spring Boot for Pivotal GemFire Starter

May I know how to implement a GemFire/Geode CacheListener in my Spring Boot application? I want to detect delete and update in my "People" Region. I using org.springframework.data:spring-data-gemfire ...
0
votes
1answer
27 views

Transferring single entry between gemfire WAN cluster

I have two gemfire (version 8.2) clusters (sender and receiver) connected through WAN. Sender cluster gets data from DB and transmits entries to Receiver through WAN gateway until both clusters are ...
0
votes
0answers
46 views

GemFire Queries gradually slow down after running for few hours

We are in performance testing of our Spring Boot based application which uses Spring Data GemFire to connect with Pivotal GemFire. During these tests what we have observed is OQL queries are slowing ...
0
votes
1answer
35 views

How to use NVL to get data from GemFire when query result is null

I am using Spring Data GemFire in a project and I am using a Repository to fetch query results from a cache as mentioned here: https://docs.spring.io/spring-gemfire/docs/1.3.3.RELEASE/reference/html/...
0
votes
1answer
31 views

Transferring data through clusters using gemfire

I have searched solutions for my usecase but did not get right one, so expecting some nice ideas to explore further. I have two gemfire (version 8.2) clusters (private and public) each stores 110+ GB ...
0
votes
1answer
48 views

GemFire object serialization using Java Serialization

We are using Spring Session management with GemFire for Session handling. Currently we are upgraded the GemFire version to the 2.1.2 release. We have used Delta Serialization for Session object. We ...
0
votes
0answers
62 views

GemFire Session sharing issue

We are using Spring Session management with GemFire for Session handling. We are doing it for container deployment where one complete transaction will be processed by multiple containers. But when we ...
1
vote
1answer
61 views

Using embedded gemfire locator and server for integration testing

I have a application that uses gemfire locator and servers. I would like to write an integration test that could help me start a locator & a server within the JVM and also shut them down when ...
0
votes
1answer
49 views

Unable to connect to Locator via GFSH

I have started a GemFire Server and Locator via Spring Boot and when I try to connect to the Locator from GFSH, I getting the following issue: gfsh> connect Connecting to Locator at [host=...
0
votes
2answers
172 views

Error creating bean with name 'gemfireCache': FactoryBean threw exception on object creation

I am trying to create an "employee" Region and put some data into it. But, I am getting Exception below: [warn 2018/12/27 17:15:46.518 IST tid=0x1] Exception encountered during context ...
0
votes
1answer
86 views

Dynamic GemFire Region Creation with PCC

I am using Pivotal GemFire 9.1.1 through Pivotal Cloud Cache 1.3.1 and ran into the following error while using the @EnableClusterConfiguration SDG annotation: 2018-11-17T16:30:35.279-05:00 [APP/PROC/...
0
votes
0answers
34 views

Uable to use Apache calcite to connect to Gemfire 9.x using third party DB app

I am using a third party application hosted on tomcat which allows only jdbc connections for querying database. In the new datasource configuration wizard, I have inserted the below details URL: jdbc:...
0
votes
0answers
25 views

Spring Boot/Gemfire: Caching collections separately

Currently, we have this large object that is easily represented by a String key. The ask is that we are able to access (get) and modify (put) the individual pieces separately. That can be done by hand ...
0
votes
0answers
41 views

Distributed lock in Gemfire - Auto Release the lock when client goes down

We are using Gemfire in a Client Server configuration mode. I am looking to implement a Distributed lock. Based on the previous suggestions in other Les Vesti posts, we went for Server side ...
0
votes
2answers
111 views

Spring Session - asynchronous call handling

Does Spring Session management take care of asynchronous calls? Say that we have multiple controllers and each one is reading/writing different session attributes. Will there be a concurrency issue ...
0
votes
1answer
56 views

Session attributes missing intermittently - Spring Session + Pivotal GemFire Implementation

Facing a strange issue for sometime in Spring Session with Pivotal GemFire integration. We have multiple HTTP requests, which eventually does set/get of session attributes in a varying order based on ...
0
votes
1answer
50 views

Not able to retrieve saved objects from GemFire backed session

I was using the GemFire session store to save and retrieve objects. session.getAttribute(sessionKey) and session.setAttribute(sessionKey, value) But, sometimes after saving, when I am trying to ...
0
votes
2answers
57 views

How to see session attributes in GemFire Pulse/Gfsh when using Spring Session for Pivotal GemFire?

We are able to save/retrieve data to/from GemFire through Spring Session management. session.getAttribute(sessionKey) // session is from gemfire. In GemFire Pulse, we are able to see the ...
0
votes
2answers
113 views

Container's session object and not GemFire's session object is invoked inside Servlet Filter

From a custom Servlet Filter when trying to access a GemFire session object, it is taking the Container's session object instead. The session object is of the type: org.apache.catalina.session....
0
votes
1answer
68 views

Querying GemFire Region by partial key

When the key is a composite of id1, id2 in a GemFire Region and the Region is partitioned with id1, what is the best way of getting all the rows whose key matched id1. Couple of options that we are ...
0
votes
1answer
29 views

Update the value in region ONLY IF value.status is 'XXX'

We are trying to use Gemfire in our work. We have a region where we store each request coming in and it goes through its lifecycle (For example, states are A --> B --> C --> D) But we also have a ...
0
votes
1answer
54 views

Deploy a Spring Boot JAR in a GemFire server

I have implemented GemFire server-side event handler (CacheLoader) using Spring Boot as I will have to call multiple external services to load data. When i tried to deploy the JAR (Spring Boot FAT ...
0
votes
1answer
64 views

Setting @EnableGemFireHttpSession regionName dynamically

Is there any way to provide GemFire regionName dynamically during runtime. Currently we are hardCoding the regionName "testRegion". Sample Code is below. Appreciate any help @Configuration @...
0
votes
1answer
86 views

Spring Session for Pivotal GemFire Multi-Session

We are trying for a solution of non-sticky session for a retailer across servers. Servers used are WebLogic 12.2.1.3 and TomcatEE 7.0.5. We are able to see sessions persisting across servers. ...
1
vote
2answers
262 views

Is it possible to start a PIvotal GemFire Server, Locator and Client in one JVM?

I want to start a Pivotal GemFire Server, Locator and client in a single JVM with Spring Boot. The server and Locator start OK (I used "start-locator" in server gemfire.properties). However, when I ...
1
vote
2answers
79 views

How to define persistence on Local Pivotal GemFire Region?

I have local Region and I want to persist the Region data to disk. How to define it using DataPolicy?
0
votes
1answer
30 views

Can we convert fields to/from GemFire PdxSerializer using annotations or Java Reflection?

Currently we are using GemFire for caching. We are in our initial phase of integrating it. While we are working on integrating GemFire using the Spring Data GemFire libraries, and using GemFire's ...
0
votes
1answer
36 views

Spring Data GemFire Server java.net.BindException in Linux

I have a Spring Boot app that I am using to start a Pivotal GemFire CacheServer. When I jar up the file and run it locally: java -jar gemfire-server-0.0.1-SNAPSHOT.jar It runs fine without issue....
0
votes
1answer
101 views

Spring Boot Gemfire Server Configuration

I am trying to understand how to host a Spring Boot Gemfire server process. I found this example Spring Gemfire Server The problem I am having is the the server I am trying to add to the cluster ...
2
votes
1answer
295 views

Start-Locator / Locators, which is for client and which is for server?

I have been configuring Pivotal GemFire like this example: @Configuration public class GemfireConfiguration { @Bean Properties gemfireProperties() { Properties gemfireProperties = ...
0
votes
1answer
284 views

Pivotal GemFire cannot see cached data in Gfsh or Pulse

I have created a Spring Boot application with a Geode/GemFire cache. I would like to connect to a Gfsh created Region with my Spring Boot application. In my application-context.xml I'm using a gfe:...
0
votes
2answers
225 views

How to start Spring Boot app without depending on Pivotal GemFire cache

I have a Spring Boot app with a Pivotal GemFire ClientCache instance configured and its corresponding domain objects. I am also using Spring Boot Test for unit testing. For every test case execution, ...
0
votes
2answers
161 views

Pagination feature in Pivotal GemFire

Is there any built-in API which provides a pagination feature in Pivotal GemFire, such as in the QueryService API or using Functions? We are currently using Pivotal GemFire 9.3.0 running in PCC. TIA....
0
votes
1answer
69 views

Accessing Data in Pivotal GemFire Lucene Analyzer not found

I'm following https://spring.io/guides/gs/accessing-data-gemfire/. I cloned it, did a mvn package, then java -jar target/gs-accessing-data-gemfire-0.1.0.jar and got this stack trace: [info 2018/07/15 ...
0
votes
2answers
72 views

Gemfire - Multiple regions using same domain object

We are using Gemfire PCC for one of our generic caching solution. Where clients would use gemfire as a caching service. In order to achieve we have common data model defined with name, value fields. ...
0
votes
1answer
28 views

How to write a HashSet Object using GemFire's PDXSerializer

I am using Spring data 2.0.5 version with Spring Boot I am trying to figure out on using GemFire's PDXSerializer how to write or read a HashSet. writer.writeObjet methods seems not to be working. ...
0
votes
1answer
227 views

Spring Data GemFire: CustomExpiry Examples

I am using Pivotal GemFire 9.1.1 and Spring Data GemFire 2.0.7.RELEASE. I have a token that will be stored in a GemFire Region with a String Key and a Map<String,String> Value. The expiration ...
0
votes
1answer
180 views

Pivotal GemFire 9.3.0: Spring Data GemFire XML config in GemFire cluster

I am migrating my GemFire cluster from 8.2.7 (with Spring Data GemFire 1.6.0.RELEASE) to Pivotal GemFire 9.3.0 (SDG 2.0.7.RELEASE). I was using spring-context.xml (declared under the initializer tag ...
1
vote
1answer
189 views

Spring Data GemFire Region entry expiration (Time-To-Live) error

I have a Spring Data GemFire Region that's configured using annotations below: @TimeToLiveExpiration(timeout ="100", action ="INVALIDATE") @PartitionRegion(name ="blockedIPCache") class ...
0
votes
1answer
111 views

How to cache PageImpl with Spring Data Geode?

When trying to cache a PageImpl response from a Spring Data JpaRepository using Spring Data Geode, it fails to cache the result with the following error: Caused by: org.springframework.beans....
0
votes
1answer
401 views

Pivotal GemFire: PDX serializer config in Spring Data GemFire

I have created a GemFire cluster with 2 Locators, 2 cache servers and a "Customer" REPLICATE Region. (Domain object class is placed in classpath during server startup). I am able to run a Java ...
0
votes
2answers
333 views

Cannot operate Regions defined in Spring context for an embedded Apache Geode cache server

I created repository SpringbootGeodeExample for demo purpose. Started a Locator in Gfsh, and cache server embedded in Spring Boot application with some Regions defined in the Spring context for ...
0
votes
1answer
173 views

GemFire with GFSH - Region creation with server start throws BindException

I am trying to create a GemFire cache and region at the time of starting a cache server using GFSH command. GFSH: gfsh start server --name=server1 --server-port=40405 --classpath=$CLASSPATH --...
0
votes
0answers
350 views

Query possibilities: GemFire vs. Redis

It seems Redis can provide same functionality as achieved thru Gemfire OQL queries, but with much of code change using spring/-boot/Java. Any insights would be highly appreciated! Storing Data - ...
0
votes
1answer
81 views

How to Register Interests using 'ALL_KEYS' in Spring Data GemFire with ClientRegionFactoryBean

I am going to register interests in ALL_KEYS for my Pivotal GemFire client via Spring Data GemFire, but I find that ClientRegionFactoryBean has one method. org.springframework.data.gemfire.client....
0
votes
1answer
46 views

Repository infrastructure throws StackOverflowError in SDG 1.9.11.BUILD-SNAPSHOT when using Query Post Processing

When using the new QueryPostProcessor feature and switching to SDG 1.9.11.BUILD-SNAPSHOT from 1.9.10.RELEASE, a StackOverflowError is thrown during Spring context initialization... Caused by: org....
0
votes
1answer
156 views

Can I use Spring Data JPA @Entity and Spring Data GemFire @Region together on the same POJO?

When I try to use the same POJO for Spring Data JPA integration with Spring Data GemFire, the repository always accesses the database with the POJO. But I want the repository to access data from ...

http://mssss.yulina-kosm.ru