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

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

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.19.0
    • Component/s: camel-core, camel-spring
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: