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:start").
                        unmarshal(jaxb).
                        to("mock:result");
            }
        };
    }

And I'm not able to replicate it:

Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
        The constructor JaxbDataFormat(String) is undefined
        Type mismatch: cannot convert from JaxbDataFormat to DataFormat
-- 
View this message in context: 
http://old.nabble.com/How-to-use-JAXB-and-Java-DSL-tp27848546p27849420.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to