You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Joe San <co...@gmail.com> on 2012/08/16 14:23:50 UTC

DataFormat Example in Camel Documentation

Which DataFormat is this? Why would it show an error in eclipse?

DataFormat jaxb = new JaxbDataFormat("com.acme.model");

from("activemq:My.Queue").
  unmarshal(jaxb).
  to("mqseries:Another.Queue");


The link to the documentation is:
http://camel.apache.org/jaxb.html

I have a Camel Core 2.9.2 library.

Regards,
Jothi

Re: DataFormat Example in Camel Documentation

Posted by Babak Vahdat <ba...@swissonline.ch>.
And as you already have got the "Camel in Action" book then take a look at
page 366 to see how to achieve this using maven.

Babak

Am 16.08.12 14:36 schrieb "Babak Vahdat" unter
<ba...@swissonline.ch>:

>
>
>Am 16.08.12 14:23 schrieb "Joe San" unter <co...@gmail.com>:
>
>>Which DataFormat is this? Why would it show an error in eclipse?
>
>You would need to add camel-jaxb 2.9.2 to your classpath as well to make
>it compile. This can also be done in an automated manner if you do make
>use of gradle or maven for your build.
>
>Babak
>
>>
>>DataFormat jaxb = new JaxbDataFormat("com.acme.model");
>>
>>from("activemq:My.Queue").
>>  unmarshal(jaxb).
>>  to("mqseries:Another.Queue");
>>
>>
>>The link to the documentation is:
>>http://camel.apache.org/jaxb.html
>>
>>I have a Camel Core 2.9.2 library.
>>
>>Regards,
>>Jothi
>
>



Re: DataFormat Example in Camel Documentation

Posted by Babak Vahdat <ba...@swissonline.ch>.

Am 16.08.12 14:23 schrieb "Joe San" unter <co...@gmail.com>:

>Which DataFormat is this? Why would it show an error in eclipse?

You would need to add camel-jaxb 2.9.2 to your classpath as well to make
it compile. This can also be done in an automated manner if you do make
use of gradle or maven for your build.

Babak

>
>DataFormat jaxb = new JaxbDataFormat("com.acme.model");
>
>from("activemq:My.Queue").
>  unmarshal(jaxb).
>  to("mqseries:Another.Queue");
>
>
>The link to the documentation is:
>http://camel.apache.org/jaxb.html
>
>I have a Camel Core 2.9.2 library.
>
>Regards,
>Jothi