I am trying to get a simple queue handler working with a Spring Cloud scope. However, I successfully received a message handler that polled the queue. The problem that I see is that when I send a message to the queue, my handler cannot unload the payload into the required Java object.
@MessageMapping("MyMessageQueue") @SuppressWarnings("UnusedDeclaration") public void handleCreateListingMessage(@Headers Map<String, String> headers, MyMessage message) {
The error I get is
No converter found to convert to class MyMessage
As I understand it, @MessageMapping should use Jackson to untie my JSON payload into a MyMessage object. However, he complains that he cannot find the converter.
Has anyone come across this?
I am using version 1.0.0.BUILD-SNAPSHOT Spring Cloud.
java spring spring-cloud amazon-web-services amazon-sqs
Slihp
source share