I am trying to do something like: from("activemq:plos.pmc") .to("rnc:pmc-message.rnc") .setHeader(DOI).xpath("/ambraMessage/doi/text()", String.class) .setHeader(Exchange.FILE_NAME).xpath("/ambraMessage/archive/text()",String.class) ...
But it doesn't allow me to add any setHeader methods after .to("rnc:...") I want to validate a message before I try to extract Xpath and I have an onException handler to catch ValidationException. What am I doing wrong ? -- Dragisa Krsmanovic Java Developer Public Library of Science http://www.plos.org