Skip to content
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

@InboundChannelAdapter Should Set MaxMessagesPerPoll to 1 by Default [INT-3657] #7617

spring-operator opened this issue Feb 25, 2015 · 2 comments


Copy link

Gary Russell opened INT-3657 and commented

SPCA configured using xml gets max-messages-per-poll="1" by default.

@InboundChannelAdapter(value = "fooChannel", poller = @Poller(fixedDelay="5000"))
public MessageSource<?> foo() {

Does not.

Referenced from: pull request #1391

Copy link
Contributor Author

Artem Bilan commented

Since basePollerType has just this:

<xsd:attribute name="max-messages-per-poll" type="xsd:string" />

With this fix we must add some description for this attribute and point that it is 1 for inbound-channel-adapter and -1 for any other PollingConsumer.
Consider the same for maxMessagesPerPoll attribute of the @Poller

Copy link
Contributor Author

Gary Russell commented

Yes; it's already talked about in the reference document but it's not mentioned in the schema docs; in fact the schema docs for basePollerType are very lacking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants