-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Can't use MongoDB with Panache with multiple clients on the same instance #10812
Comments
/cc @FroMage, @loicmathieu |
Can you give us a full stack trace please? |
I discussed on zulip with @loicmathieu about this issue. To get back to your request here is the full stack trace:
|
I'm gonna take this one as I think it has a tad more complexity than appears initially and it would be good to have a fix for |
I'm facing a weird Arc issue which is why I haven't opened a PR yet - I'll ping you when I do |
Fix MongoClient handling in Mongo Panache
Describe the bug
I have a MongoDB instance and several databases.
I don't manage to use MongoDB with Panache for several entities on different databases.
Here a simplified version of my Kotlin code :
My application.properties:
I have the following error:
I was expected that the database name was retrieved from quarkus.mongodb.db1.database.
Am I missing something?
To Reproduce
Here is a reproducer
Environment (please complete the following information):
uname -a
orver
:java -version
:mvnw --version
orgradlew --version
):The text was updated successfully, but these errors were encountered: