Search code examples
spring-amqpspring-rabbit

Spring-AMQP RPC container


Exist a container on the spring-amqp that support a reply-to feature?

I want make RPCs like https://www.rabbitmq.com/tutorials/tutorial-six-java.html, but using spring-amqp.


Solution

  • Yes. Documentation here.

    On the server side, the message listener container, when used with a message listener adapter will automatically handle the replies. You can also use the template's ...receiveAndReply methods on the server side.

    EDIT

    Note that we now have Spring Boot implementations of all 6 tutorials.