I am using spring amqp rabbitmq, and sending messages using
Message message = MessageBuilder
.withBody(item.toString().getBytes())
.setReplyTo(\"importReply
Or you can add .setContentType="text/plain"
and the converter will be able to convert to String for you.
Since you are using POJO for message listening you can't get deal with messages.
Your Foundation#importExchange
should accept message body (in your case byte[]
)
and return something appropriate to be for reply message body.
The replyHandler
just has to implement MessageListener
.
The Framework will do for you the correlation stuff.