Hi Christian,

You can find all the version of camel schema here[1], I just checked them and found the <dataFormats> tag was added in camel 1.5.0 (about a year ago)

[1] http://camel.apache.org/schema/spring/

Willem


Christian Schneider wrote:
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








Reply via email to