Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-9768

JmsHealthIndicator fails when uses jms.xaAckMode in broker-url


    • % %
    • Fuse 7.3 Sprint 38

      Spring Boot applications will crash while booting on this error:

      2018-11-07 12:16:56.684  WARN 1 --- [nio-8080-exec-6] o.s.b.actuate.health.JmsHealthIndicator  : Health check failed
      javax.jms.JMSException: Could not create Transport. Reason: java.lang.IllegalArgumentException: Invalid connect parameters: {jms.xaAckMode=1}

      The error is triggered by a combination of SB Actuator, XA resource of AMQ6.3 R9 and new behavior of AMQ client which was added by ENTMQ-2206. To make our test application work again I have to apply changes from ENTESB-9511 so I add jms.xaAckMode parameter into spring.activemq.broker-url.

      Unfortunately, new behavior of AMQ client broke JmsHealthIndicator because this parameter is valid only for XA resource and health check uses non-xa resource to test a connection.

            tturek@redhat.com Tomas Turek
            tturek@redhat.com Tomas Turek
            0 Vote for this issue
            6 Start watching this issue