jamesnetherton commented on issue #8239:
URL: https://github.com/apache/camel-quarkus/issues/8239#issuecomment-4387487629

   > is it possible to add the health to liveness check as well
   
   I am not sure if it is possible. It is explicitly registered as a readiness 
check:
   
   
https://github.com/quarkusio/quarkus/blob/4015e1e42c70950f2102b758c155521ebec2c491/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/health/MongoHealthCheck.java#L34
   
   You could try extending `MongoHealthCheck` to register as a Liveness check 
like this:
   
   ```java
   @Liveness
   @ApplicationScoped
   public class MongoLivenessHealthCheck extends MongoHealthCheck {
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to