RomeoKoeppel opened a new issue, #4605:
URL: https://github.com/apache/camel-quarkus/issues/4605

   Hi
   
   Currently it is when the services has no connection to the ActiveMQ ....
   
   ```
   Feb 17 17:14:06 XXXXXXXX[568839]: 2023-02-17T16:14:06.810Z ERROR trace_id= 
span_id= [org.apache.camel.component.jms.DefaultJmsMessageListenerContainer] 
(Camel (camel-1) thread #1 - JmsConsumer[XXXXXXXX]) Could not refresh JMS 
Connection for destination 'XXXXXXXX' - retrying using 
FixedBackOff{interval=5000, currentAttempts=1, maxAttempts=unlimited}. Cause: 
Could not connect to broker URL: tcp://localhost:61616. Reason: 
java.net.ConnectException: Connection refused
   Feb 17 17:14:11 XXXXXXXX[568839]: 2023-02-17T16:14:11.813Z ERROR trace_id= 
span_id= [org.apache.camel.component.jms.DefaultJmsMessageListenerContainer] 
(Camel (camel-1) thread #1 - JmsConsumer[XXXXXXXX]) Could not refresh JMS 
Connection for destination 'XXXXXXXX' - retrying using 
FixedBackOff{interval=5000, currentAttempts=2, maxAttempts=unlimited}. Cause: 
Could not connect to broker URL: tcp://localhost:61616. Reason: 
java.net.ConnectException: Connection refused
   ```
   
   ... the service is UP anyway:
   
   ```
   {
       "status": "UP",
       "checks": [
           {
               "name": "Database connections health check",
               "status": "UP",
               "data":
   
   {                 "<default>": "UP"             }
           },
          
   
   {             "name": "camel-routes",             "status": "UP"         }
   ,
           {
               "name": "context",
               "status": "UP",
               "data":
   
   {                 "context.name": "camel-1",                 
"context.phase": "5",                 "context.version": "3.19.0",              
   "context.status": "Started",                 "check.kind": "READINESS"       
      }
           },
          
   
   {             "name": "camel-consumers",             "status": "UP"         }
       ]
   }
   ```
   
   The reason for this is probably, that the JMS Consumer hasn't implemented a 
HealthCheck by default. I found this out within the ConsumerHealthCheck class 
in the doCallCheck method.
   
   Because of this I had to implement a custom HealthCheck for ActiveMQ.
   
   Is it possible that in the future a HealthCheck for ActiveMQ will be 
delivered by default?
   
   Thanks a lot


-- 
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: commits-unsubscr...@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to