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

JmsHealthIndicator fails when uses jms.xaAckMode in broker-url

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: fuse-7.2
    • Fix Version/s: fuse-7.2
    • Component/s: ActiveMQ, FIS-Spring Boot
    • Labels:
      None
    • Sprint:
      Fuse 7.3 Sprint 38

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tturek Tomas Turek
                  Reporter:
                  tturek Tomas Turek
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: