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>