habuma / spring-in-action-5-samples

Home for example code from Spring in Action 5.
Apache License 2.0
1.21k stars 1.04k forks source link

[Ch 08] ActiveMq, Artemis problem #81

Closed olegkamuz closed 4 years ago

olegkamuz commented 4 years ago

Standalone ActiveMQ up and runing, http://localhost:8161/admin/ working. Cloned ch-8 project seems to left working with kafka, so i stripped it(left in pom.xml (root): <module>tacocloud-messaging-jms</module> comment other messeging modules in application.yml (module tacocloud-jms) spring: activemq: broker-url: tcp://localhost:61616 user: admin password: admin in-memory: false than tested through browser order creation, result message not appear in queue. Tutorial https://spring.io/guides/gs/messaging-jms/ everything works fine. So I made simple rest api method to send(according to previous guide), connected through interface as made in ch-8 original code for JmsOrderMessagingService https://gist.github.com/olegkamuz/d73e62c933a1f4673929b292a57f1903 (queue Bean) https://gist.github.com/olegkamuz/3276941a067ba8e09e1234ff87fe9c4d (interface) https://gist.github.com/olegkamuz/b2570b1401527aafe5e63f1a72daab64 (implementation) send() methed works(checked with breakepoint in idea debugger) but still no message in queue.

Same behavior with artemis(all necessary pom.xml,application.yml, standalone artimes, code(other queu implementation) is made)