Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-6694

Not possible to autowire connectionFactory in Spring Boot using SB starter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.14.1, 5.14.2, 5.14.3, 5.14.4, 5.14.5
    • 5.15.1, 5.16.0
    • Camel
    • None
    • Regression

    Description

      From version 5.14.1 it is not possible to autowire the ConnectionFactory on the activemq component due to the change introduced in this commit
      https://github.com/apache/activemq/commit/4437393aa1a981a182142c255f76ae7cc50af183#diff-474de9fc51b7273d42a39c6327492388

      Im not really able to create a PR since I'm aware of the reasoning behind that camel activemq should not be allowed to autowire the sb connectionfactory whereas the camel jms component is https://github.com/apache/camel/blob/master/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java#L184

      Currently the SB autowirering as described here https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-messaging.html#boot-features-activemq seems broken.

      The quickfix would be to allow autowirering again, but I wonder if there are other considerations that has to be taken into account.

      See also discussion here
      http://camel.465427.n5.nabble.com/spring-activemq-broker-url-not-set-correct-on-Activemq-Spring-Boot-td5799927.html

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            preben Preben Asmussen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: