Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-1500

Set jaxb encoding with spring

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 1.6.1, 2.0-M2
    • camel-jaxb
    • None
      • eclipse v3.3.2

    Description

      I can set the encoding in Jaxb with the marshaller:

      jaxb.getMarshaller().setProperty(Marshaller.JAXB_ENCODING, "iso-8859-15");

      But the problem is i donĀ“t know how to set this in spring.

      The source in spring till now is like this:

      <route>
      <from uri="x"/>
      <marshal>
      <jaxb id="myJaxb" prettyPrint="true" contextPath="acknowledgement"/>
      </marshal>
      <to ref="y">
      </route>

      I think we need somthing like:

      <jaxb id="myJaxb" prettyPrint="true" contextPath="acknowledgement" encoding="iso-8859-15"/>

      Thanks for help

      Tobias

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            temmerich Tobias Emmerich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: