camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schneider <ch...@die-schneider.net>
Subject Re: Error in JAXB Wiki Documentation?
Date Sat, 18 Jul 2009 21:28:05 GMT
Hi Willem,

I was using camel 1.4.0. I just checked the camel schema of 1.4.0 and 
2.0-M2. It seems the dataFormats tag was not in 1.4.0 but is now present 
in 2.0-M2. Do you know when it was added ?

Greetings

Christian


Willem Jiang schrieb:
> Which version of Camel are you using?
> I checked the CamelContextFactoryBean in camel-spring module in Camel 
> trunk and camel-1.x branch, there is a dataFormats member.
>  @XmlElement(name = "dataFormats", required = false)
>  private DataFormatsDefinition dataFormats;
>
> So the wiki code should work :)
>
> Willem
>
> Christian Schneider wrote:
>> I just wanted to correct the seemly wrong documentation on the wiki 
>> and saw that the wiki includes the xml config from the jaxb tests. So 
>> I would guess that it should work with <dataFormats> if this test is 
>> active. Any idea why it did not work for me?
>>
>> Greetings
>>
>> Christian
>>
>> Christian Schneider schrieb:
>>> Hi,
>>>
>>> I think I have found an error in the Jaxb documentation in the Wiki.
>>>
>>> I tried the following config and it did not work:
>>> <camelContext id="camel" 
>>> xmlns="http://camel.apache.org/schema/spring">  <dataFormats>    
>>> <jaxb id="myJaxb" prettyPrint="true" 
>>> contextPath="org.apache.camel.example"/>  </dataFormats>
>>>
>>> Instead te following worked:
>>> <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
>>>    <jaxb id="myJaxb" prettyPrint="true" 
>>> contextPath="org.apache.camel.example"/>
>>>
>>> Should I correct the wiki or did I do something wrong?
>>>
>>> Greetings
>>>
>>> Christian
>>>
>>> http://camel.apache.org/jaxb.html
>>>
>>
>>
>
>


Mime
View raw message