[ 
https://issues.apache.org/jira/browse/CAMEL-5850?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-5850.
--------------------------------

       Resolution: Not A Problem
    Fix Version/s: 2.11.0
         Assignee: Claus Ibsen

This is working as designed. Each bean will have its own consumer.
                
> @Inject of bean containing a method @consume lead to multiplication endpoint 
> consumer
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5850
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5850
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cdi
>    Affects Versions: 2.11.0
>         Environment: dev
>            Reporter: Loïc RODIER
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.11.0
>
>
> All is in the title!
> If a cdi bean contain a method @consume each time you inject this bean a new 
> consumer is created which lead to a camel error ("Cannot add a 2nd consumer 
> to the same endpoint. Endpoint Endpoint[direct://stop] only allows one 
> consumer").
> It's maybe a bad usage ? what do you think ?
> Regards Loïc

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to