camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magnus Heino" <mag...@filur.org>
Subject jaxb and spring xml.
Date Mon, 18 Feb 2008 12:14:41 GMT
http://activemq.apache.org/camel/jaxb.html shows:

<camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring">
  <route>
    <from uri="direct:start"/>
    <unmarshal>
      <jaxb prettyPrint="true" contextPath="org.apache.camel.example"/>
    </unmarshal>
    <to uri="mock:result"/>
  </route>
</camelContext>


But the schema for the jaxb-tag shows:

<xs:element name="jaxb" type="tns:jaxbDataFormat"/>

  <xs:complexType name="jaxbDataFormat">
    <xs:complexContent>
      <xs:extension base="tns:dataFormatType">
        <xs:sequence/>
        <xs:attribute name="prettyPrint" type="xs:boolean"/>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>


So how am I supposed to enter the contextPath attribute?

A related question: What are people using? Java config or spring config? Is
everything supported, or supposed to be supported, in the spring config?

-- 

 /Magnus Heino

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message