Preben Asmussen created AMQ-6694:
------------------------------------

             Summary: Not possible to autowire connectionFactory in Spring Boot 
using SB starter
                 Key: AMQ-6694
                 URL: https://issues.apache.org/jira/browse/AMQ-6694
             Project: ActiveMQ
          Issue Type: Bug
          Components: activemq-camel
    Affects Versions: 5.14.5, 5.14.4, 5.14.3, 5.14.2, 5.14.1
            Reporter: Preben Asmussen


>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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to