[ 
https://issues.apache.org/jira/browse/CAMEL-17057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17473183#comment-17473183
 ] 

Karen Lease commented on CAMEL-17057:
-------------------------------------

In current camel versions (after 3.7), if the hosts option is specified in the 
endpoint URL (for example 
"mongodb:myDb?hosts=localhost&database=test&collection=test&operation=findAll"),
 then the "myDB" is ignored. So technically it's not necessary to write java 
code to create the MongoClient; but it's confusing to have a required bean 
which is not really required.

> camel-mongodb - Make it easier to configuring that dreadful MongoDBClientURI
> ----------------------------------------------------------------------------
>
>                 Key: CAMEL-17057
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17057
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-mongodb
>            Reporter: Claus Ibsen
>            Priority: Major
>             Fix For: 3.15.0
>
>
> Using mongodb is not as easy to configure when you need to use that mongodb 
> client url that has a ton of configurations in a string. 
> Today you have to create that MongoDBClient instance yourself via 
> constructors, so you end up having to write Java code.
> For *** sake could they not just make their client api easier to configure.
> On chat forum
> https://camel.zulipchat.com/#narrow/stream/257299-camel-k/topic/MongoDB.20connection.20configuration



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to