handleMessage method does not get the message from queue if I add MessageProperties in its signature. It works fine if there is no MessageProperties.
How can I get MessageProperties in handleMessage of MessageListenerAdapter?
public class EventMessageAdapter {
public void handleMessage(MessageProperties messageProperties, Event event) {
...
String id = messageProperties.getHeaders().get("key");
}