The issue WAS with my XPath/name parsing. I ended up using method #3 and as Ashwin mentioned, I did not need to marshall. So the following works:
from("file://c:/indir").beanRef("MyBean","fromXML").beanRef("myBean","toJdbc").to("jdbc:dataSource"); My fromXML method loads the Headers so that my toJDBC method can be used. *Interestingly*, I tried using the @Headers annotation thinking that would give me the object that I needed to set, but it was always null. I needed to use exchange.getIn().getHeaders() instead. of course, this solution lead me to a new issue, but that's for another thread :) Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/Reading-XML-file-into-a-bean-tp4617160p4619784.html Sent from the Camel - Users mailing list archive at Nabble.com.