I have a camel route file which I want to populate/configure based on certain database records accessed through Grails domain classes. However, I cannot seem to access the domain classes (or anything in the spring context) from MyRoute.groovy. Any ideas on how I can make that possible?
I tried the recommendations at http://stackoverflow.com/questions/574807/grails-accessing-spring-beans-in-the-destory-closure-of-bootstrap-code but that doesn't seem to work.