-1

I have developed Spring Boot + Axon (Bootiful CQRS with Axon) code by taking reference from https://www.youtube.com/watch?v=Jp-rW-XOYzA&list=PLgGXSWYM2FpOa_FTla-x5Wd10dpmgrRC4&index=54

I've placed all by code here: https://github.com/JavaHelper/axon-tutorials/tree/master/axon-complaints-demo. The issue which I am facing is very weird issue.

Scenario-1:

If I start both the applications (one on 8080 and other on 8081) and hit the below end-points, then nothing is appearing in the RabbitMQ queue and thus, nothing is coming when I hit the http://localhost:8081/ . It's blank.

CURL commands

curl -H "Content-Type:application/json" -d '{"company" : "apple", "description" : "My Kep"}' http://localhost:8080

curl -H "Content-Type:application/json" -d '{"company" : "apple", "description" : "Laptop not working"}' http://localhost:8080

curl -H "Content-Type:application/json" -d '{"company" : "Mastercrd", "description" : "Debit and Clearning does not works"}' http://localhost:8080 

Scenario-2:

If I start the demo-complaints first and then hit above curl command then RabbitMQ shows the queues count 3. After that I start the demo-complaints-stats successfully, then nothing shows up on the hit of http://localhost:8081/

Could anyone please guide what's wrong ?

Source code link already provided.

4

1 回答 1

0

您链接到的演示已经相对较旧。或者换一种说法,事情可能已经改变,从一开始就不清楚。您是否在此处查看手册并执行了必要的步骤?

我的预感是您尚未将 AMQP 消息源配置为事件处理程序的事件源。为此,您需要为您的事件处理程序指定一个处理组,并将 AMQP 消息源绑定到该处理组。

于 2018-11-05T08:37:41.617 回答