So here's a simple project.  Its working fine when I run it, so if you can
point out whats different about your setup.

https://github.com/johnament/camel-cdi-annotated

John

On Tue, Apr 26, 2016 at 6:34 PM John D. Ament <johndam...@apache.org> wrote:

> Could you provide a bit more context about how you're calling
> CDI.current?  Like maybe the full class or an example class?
>
> I'll try to put together an example to show it working, may be something
> to work through.  I suspect that the bean-discovery-mode=annotated is the
> problem, if you're calling within a static method in SE mode that may not
> resolve properly.
>
> John
>
>
> On Tue, Apr 26, 2016 at 9:21 AM kalber <karlheinz.al...@swslt.com> wrote:
>
>> yes,
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee";
>>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>        xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
>>
>> http://xmlns.jcp.org/xml/ns/javaee/beans_1_2.xsd";
>>        version="1.2" bean-discovery-mode="annotated">
>> </beans>
>>
>>
>>
>> -----
>> kh
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/CDI-current-with-2-17-0-tp5781717p5781724.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>

Reply via email to