-
Notifications
You must be signed in to change notification settings - Fork 40.6k
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
Provide a configuration property for JMS listener container's max messages per task #39533
Comments
There's no configuration property for @Bean
DefaultJmsListenerContainerFactory jmsListenerContainerFactory(
DefaultJmsListenerContainerFactoryConfigurer configurer, ConnectionFactory connectionFactory) {
DefaultJmsListenerContainerFactory factory = new DefaultJmsListenerContainerFactory();
configurer.configure(factory, connectionFactory);
factory.setMaxMessagesPerTask(1);
return factory;
} We could consider adding a configuration property for this if we feel that it would be generally useful. Your other points about Spring Framework will have to be addressed by the Framework team. Please open an issue with them for their consideration. We'll keep this issue in Boot's tracker to consider a configuration property for the maximum messages per task. |
Might I offer a suggestion: You could make JmsListenerContainerFactoryConfigurer an interface, and discover all beans, like other places of spring-boot do. Then it would be easier to customise. |
Closing in favor of PR #42341 |
Find a sample here: https://github.com/apinske/playground-mq/tree/scaling
The text was updated successfully, but these errors were encountered: