Spring Data Gemfire Reference Guide

Costin Leau

SpringSource, a division of VMware

Oliver Gierke

SpringSource, a division of VMware

David Turanski

SpringSource, a division of VMware


As of the 1.2.0 release, this project, formerly known as Spring GemFire, has been renamed to Spring Data GemFire to reflect that it is now a component of the Spring Data project.

Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed in print or electronically.

Table of Contents

I. Introduction
1. Introduction
2. Requirements
3. New Features
3.1. New in the 1.2.0 Release
II. Reference Guide
4. Document structure
5. Bootstrapping GemFire through the Spring Container
5.1. Advantages of using Spring over GemFire cache.xml
5.2. Using the Core Spring Data GemFire Namespace
5.3. Configuring the GemFire Cache
5.3.1. Advanced Cache Configuration
Enabling PDX Serialization
5.3.2. Configuring a GemFire Cache Server
5.3.3. Configuring a GemFire Client Cache
5.4. Configuring a GemFire Region
5.4.1. Using an externally configured Region
5.4.2. Configuring Regions
Common Region Attributes
Cache Listeners
Cache Loaders and Cache Writers
5.4.3. Data Persistence
5.4.4. Data Eviction and Overflowing
5.4.5. Data Expiration
5.4.6. Local Region
5.4.7. Replicated Region
5.4.8. Partitioned Region
partitioned-region Options
5.4.9. Client Region
Client Interests
5.5. Creating an Index
5.6. Configuring a Disk Store
5.7. Configuring GemFire's Function Service
5.8. Configuring WAN Gateways
6. Working with the GemFire APIs
6.1. Exception translation
6.2. GemfireTemplate
6.3. Support for Spring Cache Abstraction
6.4. Transaction Management
6.5. GemFire Continuous Query Container
6.5.1. Continuous Query Listener Container
6.5.2. The ContinuousQueryListenerAdapter and ContinuousQueryListener
6.6. Wiring Declarable components
6.6.1. Configuration using template definitions
6.6.2. Configuration using auto-wiring and annotations
7. Working with GemFire Serialization
7.1. Wiring deserialized instances
7.2. Auto-generating custom Instantiators
8. POJO mapping
8.1. Entity mapping
8.2. Mapping PDX serializer
9. GemFire Repositories
9.1. Introduction
9.2. Spring configuration
9.3. Executing OQL queries
10. Sample Applications
10.1. Hello World
10.1.1. Starting and stopping the sample
10.1.2. Using the sample
10.1.3. Hello World Sample Explained
III. Other Resources
11. Useful Links
IV. Appendices
A. Spring Data GemFire Schema