यहाँ सरल वसंत बूट परियोजना (संस्करण 1.5.2
) समस्या प्रदर्शित करने के लिए है:क्यों ActiveMQ 5.14.x ऊंट-jms घटक के साथ एम्बेडेड प्रारंभ नहीं कर सकता 2.18.3
https://github.com/lanwen/camel-jms-activemq-test
यह अपाचे है कैमल संस्करण 2.18.3
शाखा master
पर सब ठीक काम करता है क्योंकि activemq-camel=5.14.4
और camel-jms=2.16.3
की (इसे से संक्रामक हो जाता है)
स्प्रिंग बूट आवेदन लॉग के साथ सामान्य रूप से शुरू होता है:
2017-04-22 00:53:19.647 INFO 97217 --- [ main] o.a.camel.spring.SpringCamelContext : Apache Camel 2.18.3 (CamelContext: camel-1) is starting
2017-04-22 00:53:19.662 INFO 97173 --- [ main] o.apache.activemq.broker.BrokerService : Apache ActiveMQ 5.14.4 (localhost, ID:lanwen-osx3.local-62145-1492811599544-0:1) is starting
2017-04-22 00:53:19.665 INFO 97173 --- [ main] o.apache.activemq.broker.BrokerService : Apache ActiveMQ 5.14.4 (localhost, ID:lanwen-osx3.local-62145-1492811599544-0:1) started
2017-04-22 00:53:19.665 INFO 97173 --- [ main] o.apache.activemq.broker.BrokerService : For help or more information please see: http://activemq.apache.org
2017-04-22 00:53:19.682 INFO 97173 --- [ main] o.a.activemq.broker.TransportConnector : Connector vm://localhost started
2017-04-22 00:53:19.702 INFO 97173 --- [ main] o.a.camel.spring.SpringCamelContext : Route: route1 started and consuming from: activemq://queue:to-write?asyncConsumer=true
2017-04-22 00:53:19.703 INFO 97173 --- [ main] o.a.camel.spring.SpringCamelContext : Total 1 routes, of which 1 are started.
2017-04-22 00:53:19.704 INFO 97173 --- [ main] o.a.camel.spring.SpringCamelContext : Apache Camel 2.18.3 (CamelContext: camel-1) started in 0.466 seconds
2017-04-22 00:53:19.709 INFO 97173 --- [ main] ru.yandex.test.writer.MyTestApplication : Started MyTestApplication in 2.437 seconds (JVM running for 2.911)
लेकिन जब आप (, ऊंट के मुख्य संस्करण के रूप में शाखा पर not_working) camel-jms=2.18.3
के साथ शुरू
हालात यह लॉग के साथ गलत:
2017-04-22 00:56:38.070 INFO 97195 --- [ main] o.a.camel.spring.SpringCamelContext : Apache Camel 2.18.3 (CamelContext: camel-1) is starting
...
2017-04-22 00:56:43.590 WARN 97195 --- [ActiveMQ Task-1] o.a.a.t.failover.FailoverTransport : Failed to connect to [tcp://localhost:61616] after: 10 attempt(s) continuing to retry.
लेकिन अगर हम activemq-camel
5.13.4
camel-jms=2.18.3
के साथ बदलते हैं तो यह ठीक काम करता है ...
क्यों ActiveMQ 5.14.x ऊंट-जेएमएस 2.18.x के साथ काम नहीं करता है?
मेरे पास ऊंट-संस्करण = 2.18.0 और सक्रिय एमक्यू-संस्करण = 5.14.1 के साथ एक प्रोजेक्ट है और यह ठीक काम कर रहा है। कुछ और निशान जोड़ सकते हैं? –
क्या आपने उदाहरण प्रोजेक्ट का प्रयास किया था? https://github.com/lanwen/camel-jms-activemq-test। कृपया यह भी जांचें कि आपका ऊंट-जेएमएस संस्करण 2.16.x – lanwen