Nevermind, I'm stupid. Was using the wrong JaxbDataFormat.
--
View this message in context:
http://old.nabble.com/How-to-use-JAXB-and-Java-DSL-tp27848546p27849539.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Yeah well, UnmarshalTest.java in the jaxb test does this:
protected RouteBuilder createRouteBuilder() {
return new RouteBuilder() {
public void configure() {
DataFormat jaxb = new
JaxbDataFormat("org.apache.camel.example");
from("direct:sta
On Wed, Mar 10, 2010 at 12:46 PM, ankelee wrote:
>
> 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("mq