I assume the fact you are not getting an error on the convertsendAndReceive
means that you have configured the RabbitTemplate
with a fixed reply queue; if you do that, you need a listener container to receive the messages with the template as the 'listener'.
The easiest way to configure this is with xml
<rabbit:template ... reply-queue="foo">
<reply-listener/>
</rabbit:template>
I suggest you get it working first without a fixed reply queue - let the template create its own reply queue.
You should also remove the MessagePostProcessor
in the convertSendAndReceive
because the template will take care of its own reply queue and correlation configuration. This is not allowed when there's not a fixed reply queue.
When you switch to using a fixed reply-queue I suggest you use 1.2.0.M1 (or snapshot) because the template used a non-standard correlation technique.
Update: To use @Bean configuration instead of XML simply create a SimpleMessageListenerContainer
bean and make its listener the RabbitTemplate
. Just be sure to use the same queue in both places (the parser takes care of that when using the namespace).