I'm trying to use Spring Integration with Amazon SQS, but can't figure out what I'm doing wrong.
If I use an in-memory queue as below, everything works fine:
<channel id="businessEvents">
<queue />
</channel>
But when I changed it to use AWS SQS as below:
<int-sqs:channel id="businessEvents"
region-id="us-east-1"
queue-name="events-sqs"
aws-credentials-provider="awsCredentialsProvider" />
I get the following error:
org.springframework.integration.MessagingException: org.springframework.integration.MessagingException: No serializer found for class br.com.event.RegisterEvent and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: org.springframework.integration.aws.["payload"])
Do I need to configure anything else on Spring Integration? Or is it something wrong in my bean class?
br.com.event.RegisterEvent
. Have you implementedSerializable
? – Jos