Skip to content

Switch DefaultMessageListenerContainer to auto-startup #4403

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

Open
mp911de opened this issue Jun 7, 2023 · 1 comment · May be fixed by #4976
Open

Switch DefaultMessageListenerContainer to auto-startup #4403

mp911de opened this issue Jun 7, 2023 · 1 comment · May be fixed by #4976
Labels
status: ideal-for-contribution An issue that a contributor can help us with type: enhancement A general enhancement

Comments

@mp911de
Copy link
Member

mp911de commented Jun 7, 2023

We should enable DefaultMessageListenerContainer to auto-startup and participate in the container-managed lifecycle instead of requiring applications to start the lifecycle.

@mp911de mp911de added the type: enhancement A general enhancement label Jun 7, 2023
@christophstrobl christophstrobl added the status: ideal-for-contribution An issue that a contributor can help us with label Jul 6, 2023
@jhl221123
Copy link

Hi @mp911de, if this issue is still open for contributions, I'd like to work on it.

jhl221123 added a commit to jhl221123/spring-data-mongodb that referenced this issue May 18, 2025
This change modifies DefaultMessageListenerContainer to automatically start when the Spring application context is initialized, by default.

The 'autoStartup' property defaults to true. A setter 'setAutoStartup(boolean)' has been added to allow users to disable this behavior if needed.

Closes spring-projects#4403

Signed-off-by: Junhyeok Lee <[email protected]>
@jhl221123 jhl221123 linked a pull request May 18, 2025 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ideal-for-contribution An issue that a contributor can help us with type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants