squakez commented on issue #2684: URL: https://github.com/apache/camel-k/issues/2684#issuecomment-939798018
The problem is that in Camel K we support the default Camel Quarkus MongoDB client named `camelMongoClient`. This is the one we used internally in Camel K, and, in order to override its default property (which are that `127.0.0.1` you see logged), we must use a property. Your integration will work renaming the route as something like: ``` .routeId("java") .to("mongodb:camelMongoClient?database=z&collection=z&operation=getDbStats") .to("log:info"); ``` And then, executing the Integration with: ``` kamel run /tmp/MongoDBTest.java --dev -p quarkus.mongodb.connection-string=mongodb://1.2.3.4:27017/ ``` See [documentation](https://camel.apache.org/camel-quarkus/latest/reference/extensions/mongodb.html) for more details about how to configure the properties to store the values you need. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org