camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brad Johnson <>
Subject Re: CDI before Camel 2.17?
Date Mon, 08 Aug 2016 13:23:41 GMT
Excellent. That's pretty much what I'm looking for since I recognize it is
a matter of evolving toward that and not needing to jump into it whole hog.

I can probably live with CamelTestSupport with out the CDI runner for the
time being as well.  Part of the problem is the underlying mechanisms
aren't obvious to me since I've been using Spring and then Blueprint for so
long and I've  pretty much always gone with hand wiring of internals.

I'm not sure where the future is going with Blueprint, DS, SCR, CDI, Spring
Boot, Delta Spike, etc. but the Camel RouteBuilder will be germane in all
situations and for now I'm using Blueprint for very basic bootstrap.

While I commonly use OSGi services and export and reference them from my
bundles, to be honest I could live without them if necessary.  I mean the
great benefit for me in using OSGi with Camel is the classloader
segregation and ability to hide internal classes in a bundle.  But I can
always run routes between bundles to accomplish much the same thing that
service provide and, in a way, it is more portable.

But the ease of wiring that CDI provides is compelling and I'm very excited
about that future.

On Mon, Aug 8, 2016 at 4:21 AM, Antonin Stefanutti <>

> Hi Brad,
> The examples (camel-example-cdi.*) that are available in
> should work to some
> great extent in Camel versions prior to 2.17.0.
> As these examples concentrate on the non-advanced features and the new
> version of Camel CDI introduced in 2.17.0 managed to be largely backward
> compatible, these should work in prior versions with some little adaptation.
> You can find some more details about these non backward compatible changes
> in and
> For testing, Camel CDI test won't be available, though you can use plain
> Arquillian testing support. You can find more info in
> If that’s not enough for you to wait until Camel 2.17 / Fuse 6.3, let me
> know and we’ll try to help you further.
> Antonin
> > On 06 Aug 2016, at 00:30, Brad Johnson <>
> wrote:
> >
> > Are there any good examples of how to use CDI with Camel before 2.17?
> > Obviously that's a better option to go with and when the Fuse 6.3 release
> > hits it's first milestone that's what I'll go to but until then I can use
> > Camel 2.17 CDI test but have to use the older features with Fuse 6.2.1.
> >
> > Unless there's a patch or upgrade that does this already?
> >
> > Brad

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message