[ 
https://issues.apache.org/jira/browse/AMQ-6694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16097339#comment-16097339
 ] 

Claus Ibsen commented on AMQ-6694:
----------------------------------

Yeah I think we should look into doing this, as IMHO camel on Spring Boot 
should be able to just use the configuration in application.properties.

For example this example in my book used to work
https://github.com/camelinaction/camelinaction2/blob/master/chapter7/prototype2/rules2-springboot/src/main/java/camelinaction/InventoryRoute.java#L23

But had to add this workaround.

> 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.1, 5.14.2, 5.14.3, 5.14.4, 5.14.5
>            Reporter: Preben Asmussen
>             Fix For: 5.15.1
>
>
> 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.4.14#64029)

Reply via email to