MessageListenerAdapter API says that handler methods can accept raw Method types. When I send Message with custom properties in the Producer as
and then define handler method asCode:Message message = new Message("<xml>NST description</xml>".getBytes(), messageProperties); template.convertAndSend(message);
I am getting the following exception:Code:public void handleMessage(Message NSTmessage) {
org.springframework.amqp.rabbit.listener.ListenerE xecutionFailedException: Failed to invoke target method 'handleMessage' with argument type = [class [B], value = [{[B@7e938b4a}]
Please help! When I do same thing with Strings, it works.


Reply With Quote
