bthj commented on issue #2684:
URL: https://github.com/apache/camel-k/issues/2684#issuecomment-939065691
How does it work for you to run this integration?
```
// camel-k: language=java
// camel-k: dependency=camel:mongodb
// camel-k: dependency=camel:jackson
// camel-k: dependency=mvn:org.mongodb:mongo-java-driver:3.12.10
import org.apache.camel.builder.RouteBuilder;
public class MongoDBTest extends RouteBuilder {
@Override
public void configure() throws Exception {
from("timer:java?period=1000")
.routeId("java")
.to("mongodb:mongoBean?hosts=[host1:port,host2:port,host3:port]&username=[user]&password=[pass]&database=[dbname]&collection=[collection-name]&operation=getDbStats")
.to("log:info");
}
}
```
- do you need further configuration, like in properties?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]