discovery-mode="annotated">
>>>
>>>
>>>
>>>
>>> -
>>> 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 mailin
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 wrote:
> Could you provide a bit more context about how you're calling
> CD
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 wi
yes,
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
That should work without a hitch (CDI.current()).
Do you have a beans.xml file in the right location in your camel context?
John
On Tue, Apr 26, 2016 at 8:18 AM kalber wrote:
> Hi,
>
> i must create 'FileIdempotentRepository' as managed named beans
> programmaticly.
>
>
> For this i tried to u
Hi,
i must create 'FileIdempotentRepository' as managed named beans
programmaticly.
For this i tried to use CDI.current().getBeanManager().createBean, but
CDI.current is null.
This are dependencies i set:
org.apache.deltaspike.cdictrl
deltaspike-cdictrl-weld