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

xml returned by camel-web should avoid using a namespace prefix

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0
    • Component/s: camel-web
    • Labels:
      None

      Description

      we need to tweak the JAXBContext a little in the default jaxrs config for camel-web to avoid using a namespace prefix to make the XML a little easier to read.

      e.g. in FireFox if you view this

      http://localhost:8080/endpoints.xml

      it tends to look like this

      <ns2:endpoints>
      <ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.A" uri="activemq://example.A"/>
      <ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.B" uri="activemq://example.B"/>
      <ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.C" uri="activemq://example.C"/>
      <ns2:endpoint href="/endpoints/mock:%2F%2FsomeName" uri="mock://someName"/>
      <ns2:endpoint href="/endpoints/spring-event:%2F%2Fdefault" uri="spring-event://default"/>
      </ns2:endpoints>
      

      with the ns2 prefix making things less easy to read

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jstrachan James Strachan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: