> I used the following for my JaxbDataFormat and I guess this is the correct
> one as well.
>
> org.apache.camel.model.dataformat.JaxbDataFormat

Consider using org.apache.camel.converter.jaxb.JaxbDataFormat. "Model"
package is primarly intended to be used with Java and XML DSLs. You
probably just want to pass regular org.apache.camel.spi.DataFormat
instance to the "unmarshal" method.

import org.apache.camel.converter.jaxb.JaxbDataFormat
...
val jaxb = new JaxbDataFormat()
from(...).unmarshal(jaxb).to(...)

Of course you can still pass
org.apache.camel.model.dataformat.JaxbDataFormat to your Scala DSL (it
works for me). But org.apache.camel.converter.jaxb.JaxbDataFormat
would be more natural choice.

If you still encounter compilation error, send us minimal Maven
project which fails when compiling with 'mvn clean compile' and I'll
track the issue.

--
Henryk Konsek
http://henryk-konsek.blogspot.com

Reply via email to