http://camel.apache.org/jaxb.html
That example doesnt work, looking at the API it doesn't even take a String in the constructor? DataFormat jaxb = new JaxbDataFormat("com.acme.model"); from("activemq:My.Queue").unmarshal(jaxb).to("mqseries:Another.Queue"); I tried this: JaxbDataFormat jaxb = new JaxbDataFormat(); jaxb.setContextPath("package.with.annotated.java.classes"); .to("xslt://file:dir/some.xsl") .unmarshal(jaxb) .marshal(jaxb) .to("file://dir"); ...doesn't work: SEVERE: Failed delivery for exchangeId: 06fc3c4f-3f8a-4322-9c07-416e3e25b464. Exhausted after delivery attempt: 1 caught: java.io.IOException -- View this message in context: http://old.nabble.com/How-to-use-JAXB-and-Java-DSL-tp27848546p27848546.html Sent from the Camel - Users mailing list archive at Nabble.com.