spring-data-gemfire

Spring Boot Gemfire Server Configuration

老子叫甜甜 提交于 2019-12-25 01:29:48
问题 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 is not showing up in the cluster after I start the process. Here are the steps I am taking: Start a new locator locally (default port): gfsh>start locator --name=loc-one I want to add this SpringBootGemfireServer to the cluster: note I have commented out the embeded locator start-up - I want to add

Spring Data Gemfire locator

℡╲_俬逩灬. 提交于 2019-12-24 03:07:35
问题 I'm trying to set up a Gemfire cluster using Spring Data Gemfire. I can start a locator via gfsh and I can start a server via Spring. The problem is, I can't find a way to start a locator via Spring. 回答1: Probably the simplest, easiest way is to start an "embedded" Locator in a Server. I use this technique quite frequently when testing or starting a standalone cluster with 1 or more Spring-configured GemFire Servers. The configuration looks like the following... <util:properties id=

Programmatic Control over entry-time-to-live in Gemfire Region with ClientRegionShortcut.PROXY

眉间皱痕 提交于 2019-12-20 06:26:57
问题 Is it possible to have a ClientCache with ClientRegionShortcut.PROXY along with programmatic control over entry TTL settings (i.e. entries present in the server)? I see the entry expiration ttl settings working fine with ClientRegionShortcut.CACHING_PROXY_HEAP_LRU . In this case I can see the entries getting invalidated in server after the configured timeout in seconds, but that is not the case for ClientRegionShortcut.PROXY settings Is it NOT possible to dynamically control the entry-ttl

Spring Data GemFire: CustomExpiry Examples

自作多情 提交于 2019-12-13 04:43:05
问题 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 of the token (i.e. entry in the GemFire Region) should be dynamic dependent on a few business scenarios. I could find Pivotal GemFire documentation for CustomExpiry whereas I could not find any proper example/documentation on Spring Data GemFire ( <gfe:custom-entry-ttl> ). Please share if there is a

Spring Data GemFire and loose coupling between GemFire cache with Spring Boot on startup

扶醉桌前 提交于 2019-12-13 03:39:00
问题 We have a GemFire cluster with 2 Locators and 2 Cache nodes. Our Spring Boot services will connect to the GemFire cluster as clients and will have client Regions. We are using Spring Data GemFire to bootstrap client Regions with GemFire XML config and properties. When the GemFire cluster is down the Spring Boot service is not coming up as it couldn’t satisfy the GemFire Region dependencies ( UnsatisfiedDependecyException ) . Is there a way to loosely couple Spring Boot startup and GemFire? In

Session attributes missing intermittently - Spring Session + Pivotal GemFire Implementation

我与影子孤独终老i 提交于 2019-12-11 20:39:15
问题 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 several conditions. At some given point... (T) session.getAttribute(sessionKeyN); // (T) is template object ... is retrieving null . We have cross verified that no session.setAttribute(..) is invoked in between two session.getAttribute(..) calls out of which one misses the object. We enabled

Not able to retrieve saved objects from GemFire backed session

我是研究僧i 提交于 2019-12-11 15:55:27
问题 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 retrieve the object on the next button click, I am getting a null value back. Other times it retrieves the value correctly. The session id used for saving and retrieving are same, but still null is retrieved. Is there any way I could see the data that is saved in Geode's Pulse Monitoring application

Geode native client deserialise PdxInstanceImpl

若如初见. 提交于 2019-12-11 00:16:05
问题 I have a REST client that populates a Geode region with Json data which the Geode REST API automatically converts to a PdxInstance type. The region triggers a C# native client listener AfterCreate(EntryEvent<TKey, TVal> ev) in which the TVal type ev.NewValue is seen as type PdxInstanceImpl and looks like: PDX[7534066,__GEMFIRE_JSON]{@type=MyClass, Field1=Value1, Field2=Value2} I've seen from here that the following code can get at the individual Pdx fields IPdxInstance pdx = (IPdxInstance)ev

Values are not being populated into gemfire cache

六月ゝ 毕业季﹏ 提交于 2019-12-10 11:49:56
问题 I have 2 xml config files as below app-context.xml: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:gfe="http://www.springframework.org/schema/gemfire" xmlns:util="http://www.springframework.org/schema/util" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/gemfire

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

旧城冷巷雨未停 提交于 2019-12-08 00:31:27
问题 I have been configuring Pivotal GemFire like this example: @Configuration public class GemfireConfiguration { @Bean Properties gemfireProperties() { Properties gemfireProperties = new Properties(); gemfireProperties.setProperty("name","SpringDataGemFireApplication"); gemfireProperties.setProperty("mcast-port", "0"); gemfireProperties.setProperty("log-level", "config"); return gemfireProperties; } @Bean CacheFactoryBean gemfireCache() { CacheFactoryBean gemfireCache = new CacheFactoryBean();