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

Service Call - XML configuration of static servers called servers instead of server

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.19.0
    • camel-core, camel-spring
    • None
    • Unknown

    Description

      In Java DSL its called server, but in XML DSL its called servers

            <staticServiceDiscovery>
              <!-- the syntax is name@hostname:port -->
              <servers>hello-service@localhost:8081</servers>
              <servers>hello-service@localhost:8082</servers>
            </staticServiceDiscovery>
      

      And in Java you do

                      .staticServiceDiscovery()
                          // the syntax is name@hostname:port
                          .server("hello-service@localhost:8081")
                          .server("hello-service@localhost:8082")
                      .end() // end static list
      

      Notice how its called servers vs server.

      Also the XML DSL has no documentation in the XML Schema

        <xs:complexType name="staticServiceCallServiceDiscoveryConfiguration">
          <xs:complexContent>
            <xs:extension base="tns:serviceCallServiceDiscoveryConfiguration">
              <xs:sequence>
                <xs:element maxOccurs="unbounded" minOccurs="0" name="servers" type="xs:string"/>
              </xs:sequence>
            </xs:extension>
          </xs:complexContent>
        </xs:complexType>
      

      Attachments

        Activity

          People

            lb Luca Burgazzoli
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: