You need to configure listener container definitions created by annotation.
- factory @Bean (. ) autoStartup false.
setAutoStartup(false);
, JmsListenerEndpointRegistry bean. beans - javadoc...
...
* <p>Contrary to {@link MessageListenerContainer}s created manually, listener
* containers managed by registry are not beans in the application context and
* are not candidates for autowiring. Use {@link
* you need to access this registry listener containers for management purposes.
* If you need to access to a specific message listener container, use
* {@link
...