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

Andrea Cosentino commented on CAMEL-10635:
------------------------------------------

We have exactly the same problem in here camel-mongodb and camel-mongodb3

https://github.com/apache/camel/blob/master/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/MongoDbComponent.java#L53

> camel-mongodb-gridfs - The component should not store state
> -----------------------------------------------------------
>
>                 Key: CAMEL-10635
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10635
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-mongodb
>    Affects Versions: 2.18.1
>            Reporter: Claus Ibsen
>            Priority: Minor
>
> The component is wrong at
> https://github.com/apache/camel/blob/master/components/camel-mongodb-gridfs/src/main/java/org/apache/camel/component/gridfs/GridFsComponent.java#L42
> Where it stores the first looked up client and store that for remainder. So 
> if there are other endpoints referring to other clients then that wont work 
> as the db is not null next time.
> Instead the client should be looked up per endpoint and not stored as state 
> on the component.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to