Giter Site home page Giter Site logo

fabric8-quickstarts / spring-boot-camel-amq Goto Github PK

View Code? Open in Web Editor NEW
32.0 32.0 62.0 485 KB

a quickstart showing how to use Spring Boot, Apache Camel and Apache ActiveMQ together with Kubernetes or OpenShift

License: Apache License 2.0

Java 100.00%

spring-boot-camel-amq's People

Contributors

aldettinger avatar apupier avatar astefanutti avatar chirino avatar cunningt avatar dhirajsb avatar ffang avatar fusesource-ci avatar grgrzybek avatar jamesnetherton avatar janstey avatar jiriondrusek avatar jstrachan avatar lburgazzoli avatar luigidemasi avatar mcarlett avatar mmelko avatar nicolaferraro avatar oscerd avatar rawlingsj avatar rhuss avatar rnetuka avatar valdar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spring-boot-camel-amq's Issues

Question on AMQ configuration

I see that you have used XML configuration, do you have any configuration specific to Spring Boot where you can leverage Spring Boot's ActiveMQ configurations to be used in Camel Routes? Additionally, do you have any examples for the Camel Routes using Java DSL?
I am trying to do the same and have run into an issue. Here is the question on stackoverflow. Would you be able to provide some guidance?

Camel AMQ client tries to access ActiveMQ using the loopback address when deployed on Openshift

Camel AMQ client tries to access ActiveMQ using the loopback address when deployed on Openshift and not using the Service address --> https://github.com/fabric8-quickstarts/spring-boot-camel-amq/blob/master/src/main/resources/application.properties#L28

mvn clean fabric8:deploy -Dfabric8.mode=kubernetes
oc get pods
oc logs spring-boot-camel-amq-1-vi21e
-->
17:41:03.618 [Camel (camel) thread #10 - timer://order] WARN  o.a.c.component.timer.TimerConsumer - Error processing exchange. Exchange[ID-spring-boot-camel-amq-1-vi21e-35898-1478194763984-0-64]. Caused by: [org.springframework.jms.UncategorizedJmsException - Uncategorized exception occurred during JMS processing; nested exception is javax.jms.JMSException: Error while attempting to add new Connection to the pool; nested exception is javax.jms.JMSException: Could not connect to broker URL: tcp://127.0.0.1:61616. Reason: java.net.ConnectException: Connection refused]
org.springframework.jms.UncategorizedJmsException: Uncategorized exception occurred during JMS processing; nested exception is javax.jms.JMSException: Error while attempting to add new Connection to the pool; nested exception is javax.jms.JMSException: Could not connect to broker URL: tcp://127.0.0.1:61616. Reason: java.net.ConnectException: Connection refused
        at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:316)
        at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:169)
        at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:487)
        at org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.send(JmsConfiguration.java:469)
        at org.apache.camel.component.jms.JmsProducer.doSend(JmsProducer.java:414)
        at org.apache.camel.component.jms.JmsProducer.processInOnly(JmsProducer.java:368)
        at org.apache.camel.component.jms.JmsProducer.process(JmsProducer.java:154)
        at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:145)
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
        at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:542)
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:197)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:120)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:197)
        at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:192)
        at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:76)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.