10 Using Coherence MicroProfile Health
- Using the Health Check API in Managing Oracle Coherence
- MicroProfile Health
Coherence MP Health is a very simple module that enables you to publish Coherence health checks into the MicroProfile Health Check Registries available at runtime.
This chapter includes the following topic:
- Enabling the Use of Coherence MP Health
To use Coherence MP Health, you should first declare it as a dependency in the project’spom.xmlfile.
Enabling the Use of Coherence MP Health
To use Coherence MP Health, you should first declare it as a dependency in
the project’s pom.xml file.
You can declare Coherence MP Health as follows:
<dependency>
<groupId>${coherence.groupId}</groupId>
<artifactId>coherence-mp-health</artifactId>
<version>${coherence.version}</version>
</dependency>${coherence.groupId}is the Maven group ID for the Coherence edition being used:com.oracle.coherencefor the commercial edition orcom.oracle.coherence.cefor the community edition.${coherence.version}is the version of Coherence you are using.
After the module becomes available in the class path, the Coherence
HealthCheck producer CDI bean is automatically discovered and
registered as a MicroProfile health check provider. The Coherence health checks then
become available through any health endpoints served by the application and is included
in started, readiness, and liveness checks.
Parent topic: Using Coherence MicroProfile Health