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

Autoconfiguration: Add an option to specify which DataSource should be used. #626

Open
NicklasWallgren opened this issue Feb 7, 2025 · 0 comments · May be fixed by #627 or #628
Open

Autoconfiguration: Add an option to specify which DataSource should be used. #626

NicklasWallgren opened this issue Feb 7, 2025 · 0 comments · May be fixed by #627 or #628

Comments

@NicklasWallgren
Copy link
Contributor

NicklasWallgren commented Feb 7, 2025

Currently, the DbSchedulerAutoConfiguration selects the primary DataSource bean by default, which may not always be the desired behavior.

Although it’s possible to override the default Scheduler bean, this approach can be somewhat cumbersome.

An alternative solution could be to either update the DbSchedulerCustomizer to include a datasource method or implement a custom DataSourceSupplier.

What are your thoughts on these approaches?

Two different implementations;
#627
#628

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