camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Preben Asmussen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-11311) example - Add example for Spring Boot with external ActiveMQ broker
Date Wed, 24 May 2017 18:08:04 GMT

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

Preben Asmussen commented on CAMEL-11311:
-----------------------------------------

PR has been updated according to review comments.

To use the example as a base for reproducing the issue reported in the thread http://camel.465427.n5.nabble.com/spring-activemq-broker-url-not-set-correct-on-Activemq-Spring-Boot-tp5799927.html

Start a activemq broker on a not default port
Change the property spring.activemq.broker-url to the the that host:port eg. spring.activemq.broker-url=tcp://localhost:1234
so you override the default localhost:61616 broker.
Run mvn spring-boot:run and the log shows that the broker override is not taking any effect.

2017-05-24 20:00:33.308  WARN 90352 --- [ActiveMQ Task-1] o.a.a.t.failover.FailoverTransport
      : Failed to connect to [tcp://localhost:61616] after: 10 attempt(s) continuing to retry.

If you downgrade :
   <dependency>
      <groupId>org.apache.activemq</groupId>
      <artifactId>activemq-camel</artifactId>
      <!-- version>5.14.0</version-->
    <exclusions>
to version 5.14.0 the override works.  

See also the SB ActiveMQ docs https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-messaging.html#boot-features-activemq

 





> example - Add example for Spring Boot with external ActiveMQ broker
> -------------------------------------------------------------------
>
>                 Key: CAMEL-11311
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11311
>             Project: Camel
>          Issue Type: Task
>          Components: examples
>            Reporter: Claus Ibsen
>            Assignee: Preben Asmussen
>             Fix For: 2.20.0
>
>
> We should have an example using Spring Boot with Camel and ActiveMQ using the starter
components and configuration of AMQ in the application.properties.
> Then you should start an external broker, eg download AMQ and run it.
> There may be some troubles doing that see
> http://camel.465427.n5.nabble.com/spring-activemq-broker-url-not-set-correct-on-Activemq-Spring-Boot-tp5799927.html



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

Mime
View raw message