You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by a746076drdrb <a7...@drdrb.net> on 2016/11/10 08:59:11 UTC

Re: cdi reuse the route

Hi Antonin,

thanks a lot for help! I tried to play with it and get: ContextName is not
repeatable annotation type.

Are there any working examples using the same cdi route twice?

Cheerz!



--
View this message in context: http://camel.465427.n5.nabble.com/cdi-reuse-the-route-tp5788716p5789985.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: cdi reuse the route

Posted by Antonin Stefanutti <an...@stefanutti.fr>.
That should be fine with that version of Weld. Though I realise for it to work the qualifier need to be annotated with @Repeatable, which is missing. I’ve just created https://issues.apache.org/jira/browse/CAMEL-10464. I’ll work on it ASAP. In the meantime, you should be able to achieve the same effect using your own repeating qualifiers.

Antonin

> On 10 Nov 2016, at 12:06, a746076drdrb <a7...@drdrb.net> wrote:
> 
> I'm using 
>            <groupId>org.jboss.weld.se</groupId>                                                                       
>            <artifactId>weld-se</artifactId>                                                                           
>            <version>2.4.0.Final</version>                                                                             
> 
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/cdi-reuse-the-route-tp5788716p5789998.html
> Sent from the Camel Development mailing list archive at Nabble.com.


Re: cdi reuse the route

Posted by a746076drdrb <a7...@drdrb.net>.
I'm using 
            <groupId>org.jboss.weld.se</groupId>                                                                       
            <artifactId>weld-se</artifactId>                                                                           
            <version>2.4.0.Final</version>                                                                             




--
View this message in context: http://camel.465427.n5.nabble.com/cdi-reuse-the-route-tp5788716p5789998.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: cdi reuse the route

Posted by Antonin Stefanutti <an...@stefanutti.fr>.
Hi,

What CDI runtime are you using? It may be that some older runtimes do not support this. It has been discussed and is tracked in https://issues.jboss.org/browse/CDI-471 though some Weld versions already support it.

Antonin

> On 10 Nov 2016, at 09:59, a746076drdrb <a7...@drdrb.net> wrote:
> 
> Hi Antonin,
> 
> thanks a lot for help! I tried to play with it and get: ContextName is not
> repeatable annotation type.
> 
> Are there any working examples using the same cdi route twice?
> 
> Cheerz!
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/cdi-reuse-the-route-tp5788716p5789985.html
> Sent from the Camel Development mailing list archive at Nabble.com.