Spring integration with Rabbit AMQP for “Client Sends Message -> Server Receives & returns msg on return queue --> Client get correlated msg”

前端 未结 1 965
旧时难觅i
旧时难觅i 2021-01-16 09:49

I am able to write a java program using Rabbit Java API\'s doing the following:

  1. Client sends message over Rabbit MQ exchange/queue with correlation Id (Say

相关标签:
1条回答
  • 2021-01-16 10:41

    You can use RabbitTemplate.sendAndReceive() (or convertSendAndReceive()) with a reply listener container (Docs here); the template will take care of the correlation for you.

    If you are using Spring Integration, use an outbound gateway with an appropriately configured rabbit template.

    0 讨论(0)
提交回复
热议问题