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

Configured CustomTenantConnectionResolver is NOT invoked when quarkus app is run as a jar #2

Open
sachinp97 opened this issue Dec 20, 2024 · 0 comments

Comments

@sachinp97
Copy link

Hi @alexkolson ,
Thanks for this solution and I was able to make it work for dev testing by following similar pattern for a Postgres db. (i.e. quarkus:dev)
However, when it is run as a jar, it still looks for datasource configuration(username/password) from application.properties.
java -jar -Dquarkus.profile=test target/quarkus-app/quarkus-run.jar
And fails with Caused by: org.postgresql.util.PSQLException: The server requested SCRAM-based authentication, but no password was provided.
Apparently it goes to default tenant resolver.
It is also pointed out in your ProgrammaticDatasourceConfigurer that it might fail.
It feels like something between Agroal and hibernate, but I couldn't figure out.
Any thoughts or anyway you were able to resolve this?

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

No branches or pull requests

1 participant