camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "P.Budzik" <>
Subject How to make RouteBuilder Spring context aware?
Date Fri, 18 Jan 2008 13:32:53 GMT

I'm pondering on such case:


1) There is a class that is a plain TestCase subclass
2) There is a valid xml camel context definition which is valid Spring
context definition too.
3) This context definition has also some beans defined (say some
4) This context file is loaded using Spring's ClasspathXmlApplicationContext
5) There are also RouteBuilders defined in that context 

Now, how to rip off Spring's ApplicationContext so that it could be
accessible in RouteBuilder? 
We can grab CamelContext from there, but I guess nothing than that. To put
it simply, how to make RouteBuilder ApplicationContextAware? 
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message