Welcome to the reference documentation of Coherence Spring, a collection of libraries that will help you to integrate Oracle Coherence with the wider Spring ecosystem.

Oracle Coherence is a scalable, fault-tolerant, cloud-ready, distributed platform for building grid-based applications and reliably storing data. The product is used at scale, for both compute and raw storage, in a vast array of industries such as critical financial trading systems, high performance telecommunication products and e-commerce applications.

Coherence Spring features dedicated support to bootstrap Oracle Coherence and to inject Coherence resources into Spring beans as well as to inject Spring beans into Coherence resources. Spring’s dependency injection (DI) support simplifies application code as Oracle Coherence maps, caches and topics are just injected instead of being obtained explicitly via Coherence APIs. Furthermore, using annotated event listener methods simplifies building reactive code that responds to Coherence cache events.

Before diving into the technical aspects of the reference documentation let’s provide a brief overview of the Coherence Spring reference documentation, where to start, how to obtain further helper and more.

1. About the Documentation

The Coherence Spring reference guide is available as:

2. Compatibility

Coherence Spring 5.0.0 uses Spring Framework 7.0.9 and Spring Boot 4.0.8. These are separate product versions. Coherence Spring supports Java 17 and Java 21 and targets Java 17 bytecode. The default Coherence runtime dependency is CE 26.04. The following runtime table applies to Coherence Spring 5.x.

Coherence runtime Java Role and evidence

CE 26.04

17, 21

Supported default. Earlier full-reactor and packaged-consumer checks passed on both JDKs.

CE 26.10

21

Additional hardened CI runtime. Requires Java 21 or later. Use the released artifacts for runtime checks.

Commercial 15.1.1.0.0 (build 118662; Maven 15.1.1-0-0)

17, 21

Local reactor qualification passed with nine expected skips per JDK because newer security APIs are absent. All 19 packaged-consumer cases passed.

Commercial 26.1.0.0.0 (build 123470; Maven 26.1.0-0-0)

21

Local hardened reactor qualification and all 19 packaged-consumer cases passed without skips.

The commercial results cover the exact Grid Edition base releases above on macOS ARM64, retaining Java 17 product bytecode. Their Maven group ID is com.oracle.coherence. Coherence Spring 5.x supports commercial 15.1.1.0 on Java 17/21 and 26.1.0.0 on Java 21. These checks do not establish Oracle product certification or qualification of other patch levels, platforms or features specific to commercial editions.

Coherence CE 26.10 enables hardened mode by default. Normal applications do not need to set coherence.security.mode=hardened. Required serialization permissions and security metadata still apply.

The CE 26.04 reactor checks skip tests that require newer Coherence security APIs. The hardened CI lane selects released CE 26.10 and explicitly sets coherence.security.mode=hardened for Maven and child JVMs to pin the mode recorded by its audit. It rejects skipped tests. A separate fresh-JVM check clears mode overrides and verifies default hardening and rejection of an unpermitted payload before its deserialization callback. CI configuration alone does not establish a passing result. Earlier test results do not constitute final qualification of the Coherence Spring 5.0.0 release artifacts.

Java 17 bytecode does not remove a dependency’s Java requirement. Use Java 21 when selecting CE 26.10. Select servlet containers and other providers that support the application’s JDK. Spring Framework 7, Spring Boot 4, and jakarta.* namespaces alone do not establish commercial Coherence compatibility.

2.1. Coherence Spring 4.x commercial runtimes

The 4.x maintenance line supports the following commercial Oracle Coherence combinations:

Commercial runtime Java Required security-mode configuration

15.1.1.0.0 (build 118662; Maven 15.1.1-0-0)

17, 21

No additional security-mode setting.

26.1.0.0.0 (build 123470; Maven 26.1.0-0-0)

21

Explicit coherence.security.mode=compatibility in every application, client and server JVM before Coherence initializes.

For the supported 4.x/26.1 combination, supply this JVM argument on each endpoint:

-Dcoherence.security.mode=compatibility

Coherence 26.1 enables hardened mode when this property is unset. Its hardened default rejects types needed by the unchanged 4.x Session integration and application payloads. The supported 4.x/26.1 combination requires compatibility mode; hardened 4.x operation with a complete application/library security policy has not been qualified.

Local verification used 4.3.2-SNAPSHOT maintenance source at commit 49bd07310542 and the exact Grid Edition base builds above on macOS ARM64, retaining Java 17 product bytecode. Each tested combination passed 650 reactor cases and four additional CacheStore integration cases without skips. Packaged-consumer checks also passed for Boot/cache, Spring Data and Spring Session. The 26.1 compatibility-mode checks used no application/library security metadata overlays or production source changes. Java 17 bytecode does not remove the Java 21 runtime requirement of Coherence 26.1. These checks do not establish Oracle product certification or qualification of other patch levels, platforms or features specific to commercial editions.

3. Getting Help

If you run into issues with Spring Coherence, we are here to help.

  • Try the Quickstart. The Quickstart will give you an overview of Coherence Spring’s capabilities and provides a sample application to get you started.

  • Learn the Coherence basics. Please have at least some basic understanding of Oracle Coherence since all Spring Coherence modules depend on it. Check out the Coherence CE web-site for general Coherence targeted reference documentation.

  • Learn the Spring basics. The reference guide assumes that you have a basic understanding of Spring Framework and Spring Boot. Coherence Spring utilizes several other Spring projects. Check the spring.io web-site for general reference documentation. If you are starting out with Spring, try one of the guides or generate a starter project using start.spring.io/.

  • Ask a question. Chat with us directly on Slack. We also monitor stackoverflow.com for questions tagged with oracle-coherence.

  • Contribute. Report bugs with Spring Coherence via GitHub Issues. Both, Coherence CE and Coherence Spring are Open Source Software (OSS) under the liberal Universal Permissive License (UPL). Contributing back is a great way to attain a deeper understanding of our projects.

All of Coherence Spring is open source, including the documentation. If you find problems with the docs or if you want to improve them, please get involved.

4. What is new?

In order to see what changes were made from earlier versions of Coherence Spring, see the Change History as well as the GitHub Releases page.

5. First Steps

If you are getting started with Coherence Spring, start with the Quickstart. It is a great way to see a working solution quickly. Particularly if you are relatively new to Spring, continue with the spring-boot.html chapter next.

Another great example application is the Spring Boot implementation of the To-do List application.

The reference documentation makes a distinction between Spring Framework and Spring Boot. At its very core, Spring Framework provides Dependency Injection (DI) or Inversion Of Control (IOC) to Java applications. Furthermore, Spring Framework gives developers comprehensive infrastructure support for developing Java applications.

Spring Boot on the other hand, is an opinionated extension to the Spring Framework by:

  • Eliminating boilerplate configurations

  • Providing Auto-Configuration for other Spring modules and third-party integrations

  • Metrics + health checks

The vast majority of new Spring projects will utilize Spring Boot. Nonetheless, please also study the Spring Framework targeted chapters as Spring Frameworks is the foundation for everything related to Spring Boot.