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

Modify DefaultMessageListenerContainer javadoc #25503

Closed
wants to merge 1 commit into from

Conversation

michaldo
Copy link

@michaldo michaldo commented Aug 1, 2020

Issue #15210 reports a problem with maxMessagePerTask and CachingConnectionFactory. The result of the issue is javadoc section which discourages CachingConnectionFactory with dynamic scaling.
But dynamic scaling described in the javadoc is achieved by method setMaxConcurrentConsumers, not setMaxMessagePerTask.

I can't find issue 15210 details, but CachingConnectionFactory is typical setup in Spring world. For example, the guide https://github.com/spring-guides/gs-messaging-jms creates a context with DefaultMessageListenerContainer + CachingConnectionFactory.

For that reason I assume that DefaultMessageListenerContainer + CachingConnectionFactory + dynamic scaling with setMaxConcurrentConsumers is correct. I deleted misleading Javadoc section and added relevant discouraging section to Javadoc of method setMaxMessagePerTask.

If I am wrong please reject my PR.

Issue spring-projects#15210 reports problem with maxMessagePerTask and CachingConnectionFactory. Result of the issue is javadoc section which discourages from CachingConnectionFactory with dynamic scalling.
But dynamic scaling described in the javadoc is achieved by method setMaxConcurrentConsumers, not setMaxMessagePerTask. 
I can't find issue 15210 details, but CachingConnectionFactory is typical setup in Spring world. For example, guide https://github.com/spring-guides/gs-messaging-jms creates context with DefaultMessageListenerContainer + CachingConnectionFactory.

For that reason I assume that DefaultMessageListenerContainer  + CachingConnectionFactory + dynamic scaling with setMaxConcurrentConsumers is correct. I deleted misleading Javadoc section and added relevant discouraging section to Javadoc of method setMaxMessagePerTask

If I am wrong please reject my PR
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Aug 1, 2020
@sbrannen sbrannen requested a review from jhoeller August 1, 2020 09:25
@sbrannen sbrannen added in: messaging Issues in messaging modules (jms, messaging) type: documentation A documentation task labels Aug 1, 2020
@sbrannen
Copy link
Member

sbrannen commented Aug 1, 2020

I've edited your comment to improve the formatting. You might want to check out this Mastering Markdown guide for future reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: messaging Issues in messaging modules (jms, messaging) type: documentation A documentation task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants