On Mon, Jul 4, 2011 at 3:55 PM, Alistair Young <alistair.yo...@uhi.ac.uk> wrote: > Camel seems to load its own instances of beans in camel-config.xml > > testProcessor = (TestProcessor)ctx.getBean("testProcessor"); > testProcessor.setPath("/home/test"); > > but when i do this: > > sendBody("activemq:topic:edirectoryprocessed", testuserCreatePayload); > > testProcessor has its old path. i.e. testProcessor.setPath("/home/test") has > no effect in camel > > is there a way to load bean definition that camel will use during the test? >
Camel does not load its own instances. If you use spring with Camel, it will lookup the beans from spring application context, and use whatever spring returns to it. Whatever object you send from the producer template is send *as is*. > thanks, > > Alistair > > > -- > mov eax,1 > mov ebx,0 > int 80h > > > > > -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/