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 <karlheinz.al...@swslt.com> wrote:

> 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:
>    <dependency>
>             <groupId>org.apache.deltaspike.cdictrl</groupId>
>             <artifactId>deltaspike-cdictrl-weld</artifactId>
>             <version>1.6.0</version>
>         </dependency>
>         <dependency>
>             <groupId>org.jboss.weld.se</groupId>
>             <artifactId>weld-se</artifactId>
>             <version>2.3.3.Final</version>
>         </dependency>
>
> It's possible to use javax.enterprise.inject.spi.CDI ?
>
>
>
>
> -----
> kh
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/CDI-current-with-2-17-0-tp5781717.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to