camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giovanni Condello <>
Subject Re: unit testing with DSL using 2.17.0.redhat-630187
Date Tue, 14 Feb 2017 18:28:14 GMT

We are using camel and spring boot with great success (bugs aside 😅).

Take a look at this sample code:

And ignore the fact that the route/test doesn't work (due to a bug in camel
for which I've already filed a ticket).

That should be enough to get you started. Btw the sample uses the latest
camel and spring but we use basically the same code with camel 2.17.


Il mar 14 feb 2017, 19:23 hvan <> ha scritto:

> It cannot find the application context. Everything I can find says it works
> for vanilla java or spring XML files.  I am using spring
> boot/grails/gradle/groovy/camel DSL to define routes.
> I looked in Camel in action MEAP (2nd edition).  They want 2.17.1
> camel.....
> Camel in action 1st ed. does not seem to have anything useful.
> It is either XML or it just says just do:
> protected RouteBuilder createRouteBuilder() Throws.....{
> return new myRoute()
> }
> It cannot find myRoute config due to the application context being empty.
> Has anyone gotten tests to work under these conditions?
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

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