MongoClientName annotation class not available when using camel-quarkus-mongodb extension
See original GitHub issueDescribe the issue
@io.quarkus.mongodb.runtime.MongoClientName
-annotation class not available when using camel-quarkus-mongodb
extension. Annotation works with quarkus-mongodb-client
but not if both extensions are present.
To Reproduce
Add mongo extension and set quarkus.mongodb.users.connection-string
in application.properties
Try to inject MongoClient into any bean:
@Inject
@MongoClientName("users")
MongoClient mongoClient1;
Observer java.lang.NullPointerException: Annotation class not available
-error
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Using the MongoDB Client - Quarkus
MyVariable class is not known to GraalVM, the remedy is to add the @RegisterForReflection annotation to your MyVariable class . More details about...
Read more >Camel Extensions for Quarkus Reference Red Hat Integration ...
The quarkus-amazon-lambda extension allows you to use Quarkus to build your AWS Lambdas, whereas Camel component manages (deploy, undeploy, …) existing ...
Read more >Class 'MongoDB\Client' not found, mongodb extension installed
i think i have properly installed MongoDB extension (Copied php_mongodb.dll to ext folder and updated php.ini with extension=php_mongodb.dll). The following ...
Read more >Home of Quarkus Cheat-Sheet - GitHub Pages
Quarkus comes with extensions to integrate with some libraries such as JSON-B, ... If not provided, attribute is determined by class name (ie ......
Read more >Spring Data MongoDB - Reference Documentation
You can find a working example of using the BOMs in our Spring Data ... If you do not want to extend Spring...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@squakez please add references to the issues on quarkus otherwise it is not easy to understand what’s going on here.
As soon as we fix the issue in the quarkus extension mentioned above we will be able to introduce the concept of a “named” connection in our extension. I am also trying to see if we can use reactive clients in order to be fully compliant with all options available.