2009/4/1 Martin Gilday <martin.li...@imap.cc>: > It turns out my colleague didn't have the Spring @RunWith registered > with his test case. Once that was in place then the converter worked > simply by adding @Autowired onto the required service component, and the > Injector took care of the rest. No need for ApplicationContextAware or > passing in the Exchange.
Cool. You should be able to use all the Spring/Guice injection stuff inside your converter (or bean/processor/endpoint etc). BTW I thought from your initial mail you wanted a converter who's function was to take a String and turn it into a service - hence the reason I used the ApplicationContext to do the lookup each time for each message :) -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/