Spring Connector for GemFire/Geode/Pivotal Cloud Cache on Cloud Foundry
Switch branches/tags
Nothing to show
Clone or download
Petahhh Adds notes for v1.1.x
- it is now changed from getUsername to getDevUsername

[#134659931]

Signed-off-by: Brenda Chan <brchan@pivotal.io>
Latest commit b2014a3 Jun 22, 2017

README.md

#Spring Cloud GemFire Connector

Spring Cloud Connector for using GemFire service on Cloud Foundry

Java Applications

Applications can use this connector to access the information in VCAP_SERVICES environment variable, necessary to connect to a GemFire cluster.

For 1.0.x

CloudFactory cloudFactory = new CloudFactory();
Cloud cloud = cloudFactory.getCloud();
GemfireServiceInfo myService = (GemfireServiceInfo) cloud.getServiceInfo("MyService");
myService.getUsername();
myService.getLocators();

For 1.1.x

CloudFactory cloudFactory = new CloudFactory();
Cloud cloud = cloudFactory.getCloud();
GemfireServiceInfo myService = (GemfireServiceInfo) cloud.getServiceInfo("MyService");
myService.getDevUsername();
myService.getLocators();

Spring Applications

Spring Application can use this connector to auto inject a GemFire ClientCache which enables the application to talk to the GemFire cluster.

Examples

Simple example apps are at https://github.com/gemfire/cf-gemfire-connector-examples