Spring Data GemFire Reference Guide


Costin Leau , Oliver Gierke , David Turanski , Lyndon Adams


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.3.0.Release
3.2. New in the 1.2.1 Release
3.3. 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. Using the GemFire Data Access Namespace
5.4.1. An Easy Way to Connect to GemFire
5.5. Configuring a GemFire Region
5.5.1. Using an externally configured Region
5.5.2. Configuring Regions
Common Region Attributes
Cache Listeners
Cache Loaders and Cache Writers
5.5.3. Data Persistence
5.5.4. Data Eviction and Overflowing
5.5.5. Data Expiration
5.5.6. Local Region
5.5.7. Replicated Region
5.5.8. Partitioned Region
partitioned-region Options
5.5.9. Client Region
Client Interests
5.6. Creating an Index
5.7. Configuring a Disk Store
5.8. Configuring GemFire's Function Service
5.9. Configuring WAN Gateways
5.9.1. WAN Configuration in GemFire 7.0
5.9.2. WAN Configuration in GemFire 6.6
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. Annotation Support for Function Execution
10.1. Introduction
10.2. Implementation vs Execution
10.3. Implementing a Function
10.3.1. Annotations for Function Implementation
Batching Results
Enabling Annotation Processing
10.4. Executing a Function
10.4.1. Annotations for Function Execution
Enabling Annotation Processing
10.5. Programmatic Function Execution
11. Sample Applications
11.1. Hello World
11.1.1. Starting and stopping the sample
11.1.2. Using the sample
11.1.3. Hello World Sample Explained
III. Other Resources
12. Useful Links
IV. Appendices
A. Spring Data GemFire Schema