You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Ephemeris Lappis <ep...@gmail.com> on 2022/12/26 15:31:46 UTC

Camel JAXB DataFormat / Change between 2.X and 3.X

Hello.

We have some Camel contexts that define a JAXB DataFormat before the
routes, and then use a reference on the route.

Example :

<dataFormats>
  <jaxb
  id="myJAXB"
  contextPath="my.test.t26.routes.xml"
  encoding="UTF-8"
  prettyPrint="true"
  schema="classpath:xsd/my-schema.xsd" />
</dataFormats>

and then :

<unmarshal ref="myJAXB" />

Now it seems that we have to add a "custom" element to reference the
DataFormat, like :

<unmarshal><custom ref="myJAXB"></custom></unmarshal>

Please, could you confirm this change, and that this last syntax is
the best one ?

Thanks.

Regards.

Re: Camel JAXB DataFormat / Change between 2.X and 3.X

Posted by Ephemeris Lappis <ep...@gmail.com>.
Thanks a lot...

Ephemeris Lappis

Le 26/12/2022 à 19:18, Claus Ibsen a écrit :
> Hi
>
> Yes correct and <unmarshal ref=...> was deprecated in 2.x to tell about
> changes coming.
>
>
> On Mon, Dec 26, 2022 at 4:32 PM Ephemeris Lappis <ep...@gmail.com>
> wrote:
>
>> Hello.
>>
>> We have some Camel contexts that define a JAXB DataFormat before the
>> routes, and then use a reference on the route.
>>
>> Example :
>>
>> <dataFormats>
>>    <jaxb
>>    id="myJAXB"
>>    contextPath="my.test.t26.routes.xml"
>>    encoding="UTF-8"
>>    prettyPrint="true"
>>    schema="classpath:xsd/my-schema.xsd" />
>> </dataFormats>
>>
>> and then :
>>
>> <unmarshal ref="myJAXB" />
>>
>> Now it seems that we have to add a "custom" element to reference the
>> DataFormat, like :
>>
>> <unmarshal><custom ref="myJAXB"></custom></unmarshal>
>>
>> Please, could you confirm this change, and that this last syntax is
>> the best one ?
>>
>> Thanks.
>>
>> Regards.
>>
>

-- 
Cet e-mail a été vérifié par le logiciel antivirus d'Avast.
www.avast.com

Re: Camel JAXB DataFormat / Change between 2.X and 3.X

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Yes correct and <unmarshal ref=...> was deprecated in 2.x to tell about
changes coming.


On Mon, Dec 26, 2022 at 4:32 PM Ephemeris Lappis <ep...@gmail.com>
wrote:

> Hello.
>
> We have some Camel contexts that define a JAXB DataFormat before the
> routes, and then use a reference on the route.
>
> Example :
>
> <dataFormats>
>   <jaxb
>   id="myJAXB"
>   contextPath="my.test.t26.routes.xml"
>   encoding="UTF-8"
>   prettyPrint="true"
>   schema="classpath:xsd/my-schema.xsd" />
> </dataFormats>
>
> and then :
>
> <unmarshal ref="myJAXB" />
>
> Now it seems that we have to add a "custom" element to reference the
> DataFormat, like :
>
> <unmarshal><custom ref="myJAXB"></custom></unmarshal>
>
> Please, could you confirm this change, and that this last syntax is
> the best one ?
>
> Thanks.
>
> Regards.
>


-- 
Claus Ibsen
-----------------
@davsclaus
Camel in Action 2: https://www.manning.com/ibsen2