You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2012/12/22 16:49:13 UTC

[jira] [Resolved] (CAMEL-5850) @Inject of bean containing a method @consume lead to multiplication endpoint consumer

     [ 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