spring-data-gemfire

Spring Data Geode Region has local scope and cannot listen to remote Region events

我的梦境 提交于 2020-03-04 15:38:30
问题 I am using Spring Data for Apache Geode for a Spring Boot app that uses a remote Apache Geode server. To set up local Regions I am using @Configuration class like: @Configuration public class GeodeConfig { public static Region<String, String> myRegion; @Bean("setupMyRegion") public Region<String, String> setupMyRegion(GemFireCache cache) { Region<String, String> r = cache.getRegion("myRegion"); myRegion = r; return r; } } This enables me to put and get data with the Region. When I register

Spring Data Geode Region has local scope and cannot listen to remote Region events

感情迁移 提交于 2020-03-04 15:38:04
问题 I am using Spring Data for Apache Geode for a Spring Boot app that uses a remote Apache Geode server. To set up local Regions I am using @Configuration class like: @Configuration public class GeodeConfig { public static Region<String, String> myRegion; @Bean("setupMyRegion") public Region<String, String> setupMyRegion(GemFireCache cache) { Region<String, String> r = cache.getRegion("myRegion"); myRegion = r; return r; } } This enables me to put and get data with the Region. When I register

Spring-Data-Gemfire - Unable to contact a Locator service. Operation either timed out or Locator does not exist

本秂侑毒 提交于 2020-01-24 21:34:26
问题 I want to connect to a exist locator. Now I don't have client-server. I started a locator,port is 40001, server1 port is 40411. gfsh>list members Name | Id ------- | ---------------------------------------------- test1 | 192.168.1.106(test1:1880:locator):1024 server1 | 192.168.1.106(server1:7532):1025 Configuration is: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:gfe-data="http://www.springframework.org/schema/data/gemfire" xmlns:xsi=

Apache Geode Web framework

时光总嘲笑我的痴心妄想 提交于 2020-01-24 18:47:13
问题 We’re using VS and the following web frameworks are integrated https://visualstudio.microsoft.com/vs/features/web/frameworks/ Angular Vue React Bootstrap Cordova I’d like to know if there’s a web framework more integrated with Geode or which of these to choose for a UI layer? 回答1: Following up to what VHF stated, Spring Boot , on the other hand, contains excellent support for various Web Frameworks and other Web technologies. See here: Developing Web Applications : https://docs.spring.io

Apache Geode Web framework

二次信任 提交于 2020-01-24 18:47:04
问题 We’re using VS and the following web frameworks are integrated https://visualstudio.microsoft.com/vs/features/web/frameworks/ Angular Vue React Bootstrap Cordova I’d like to know if there’s a web framework more integrated with Geode or which of these to choose for a UI layer? 回答1: Following up to what VHF stated, Spring Boot , on the other hand, contains excellent support for various Web Frameworks and other Web technologies. See here: Developing Web Applications : https://docs.spring.io

Going through Spring Test Data Geode but @EnableGemFireMockObjects annotation is not found

雨燕双飞 提交于 2020-01-16 08:39:50
问题 I spent a long time trying to run the example tests from here and here. The @EnableGemFireMockObjects annotation cannot be found and neither can import org.springframework.data.gemfire.tests.mock.annotation.EnableGemFireMockObjects; The example tests don't run. Presumably this is missing a Gradle dependency but I can't find a Gradle example in the documentation. 回答1: Per Javalibs I needed to add implementation 'org.springframework.data:spring-data-geode-test:0.0.11.RELEASE' to gradle.build

Unable to create Continuous Query on geode

 ̄綄美尐妖づ 提交于 2020-01-07 02:59:05
问题 I am trying to do a poc on creating continiuous query on Apache Geode. But Getting below exception Caused by: java.lang.IllegalStateException: CqService is not available. at com.gemstone.gemfire.cache.query.internal.cq.MissingCqService.start(MissingCqService.java:171) ~[gemfire-core-1.0.0-incubating.M1.jar:na] at com.gemstone.gemfire.cache.query.internal.DefaultQueryService.getCqService(DefaultQueryService.java:810) ~[gemfire-core-1.0.0-incubating.M1.jar:na] at com.gemstone.gemfire.cache

Set Gemfire entry-ttl in Java Beans

删除回忆录丶 提交于 2020-01-04 01:50:20
问题 I would like to create a Gemfire region in a Spring Boot application. Following this sample, it works well wihout adding database support. If I add database, it will shows error like " Error creating bean with name 'dataSource'". However, default gemfire cache bean works well with datasource integration. @EnableAutoConfiguration // Sprint Boot Auto Configuration @ComponentScan(basePackages = "napo.demo") @EnableCaching @SuppressWarnings("unused") public class Application extends

Override findAll() Spring Data Gemfire Repo Queries

心已入冬 提交于 2019-12-25 08:08:33
问题 I have millions of objects populated in GemFire regions. I don't want default findAll() SDR query to be executed to retrieve the millions of objects in one shot. I am trying to figure out if there is a way to override the default findAll query and provide the LIMIT param to restrict the number of objects retrieved from GemFire Regions. Here is an example of what I want to do: NoRepositoryBean public interface CrudRepository<T, ID extends Serializable> extends Repository<T, ID> { /** * Returns

Setting @EnableGemFireHttpSession regionName dynamically

非 Y 不嫁゛ 提交于 2019-12-25 02:19:22
问题 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 @EnableGemFireHttpSession(poolName = "gemfirePool", regionName="testRegion") public class TestConfig { //Some Code here } 回答1: Yes, great timing! There is now as of Spring Session for Apache Geode/Pivotal GemFire 2.0.5.RELEASE as well as 2.1.0.M1 . See here and alternatively, here. I recently made the