-
-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@SQSListener method: @SnsNotificationMessage parameter doesn't work in batching method signatures #1129
Comments
Hi @EstelaGarcia, thanks for opening the issue. You're right in that batch Sns Messages are not currently supported. Would you like to contribute a PR with that functionality? Thanks |
Oh, my mistake, we have a PR already. Please ignore the last message. Thanks. |
Hi, In the meantime, I copied the NotificationMessageArgumentResolver and the SnsMessageConverter to my code base. `@Configuration
`
however the conversion still doesn't convert to appropriate object. I'm able to see multiple message read from the SQS and tries to convert into FTOOrderEventDto, however all the properties/attributes are null Not sure what wrong I'm doing here. any suggestions? |
I am facing below issue after adding above conf wrt to SQS
org.springframework.context.ApplicationContextException: Failed to start bean 'io.awspring.cloud.messaging.internalEndpointRegistryBeanName' |
@EstelaGarcia and @nandeeshsu , Have you faced above issue, |
@nilesh-chordia , I ended up doing my own parsing of the incoming messages (having the argument in the method be a list of strings) as I didn't have time to figure out a cleaner way to do it (we had a deadline).
|
@EstelaGarcia , Thanks for your response, Issue is resolved. |
PR with the enhancement was merged: #1191 |
Type: Bug
Component:
SQS
Describe the bug
Using Spring Cloud 3.1.1 (have also tried 3.2.0-M1)
The following method signatures result in an SQS Listener that works and converts to the appropriate object:
SQS message, single object
SQS message, List of objects
SNS to SQS message, single object
However the following does not work as no converter can be found:
The error occurs in the following method in
io.awspring.cloud.sqs.listener.adapter.AbstractMethodInvokingListenerAdapter
CustomObjectType is a simple JSON object, and the conversion occurs correctly when handling a single message at a time.
From the comments under the PR that introduced the
@SnsNotificationMessage
annotation, we are not the only ones experiencing this problem.The text was updated successfully, but these errors were encountered: