-
Notifications
You must be signed in to change notification settings - Fork 627
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
Batch listening does not work for typed Spring messaging messages #1145
Labels
Comments
KaiStapel
pushed a commit
to KaiStapel/spring-amqp
that referenced
this issue
Jan 17, 2020
… listeners with typed 'org.springframework.messaging.Message's
Hmmm - we have a test for this... Lines 121 to 143 in f0fb325
When you sign the CLA, I can look at your PR. |
Your test will also show this bug if you change it as follows:
factory.setConsumerBatchEnabled(true);
factory.setBatchSize(2);
this.template.send("json.batch.2", msg("{\"bar\":\"foo\"}"));
this.template.send("json.batch.2", msg("{\"bar\":\"bar\"}"));
[...}
private org.springframework.amqp.core.Message msg(String body) throws UnsupportedEncodingException {
MessageProperties properties = new MessageProperties();
properties.setContentType("application/json");
return new org.springframework.amqp.core.Message(body.getBytes(SimpleMessageConverter.DEFAULT_CHARSET), properties);
} |
KaiStapel
pushed a commit
to KaiStapel/spring-amqp
that referenced
this issue
Jan 19, 2020
KaiStapel
pushed a commit
to KaiStapel/spring-amqp
that referenced
this issue
Jan 22, 2020
garyrussell
pushed a commit
that referenced
this issue
Jan 22, 2020
KaiStapel
pushed a commit
to KaiStapel/spring-amqp
that referenced
this issue
Nov 18, 2020
…ameter type inference
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Affects Version(s): 2.2.2.RELEASE
Bug report
The following batch listener does not work as expected:
Incoming messages fail to get deserialized with the following error message:
Steps to reproduce
The text was updated successfully, but these errors were encountered: