Claus Ibsen created CAMEL-11191:
-----------------------------------
Summary: Service Call - XML configuration of static servers called
servers instead of server
Key: CAMEL-11191
URL: https://issues.apache.org/jira/browse/CAMEL-11191
Project: Camel
Issue Type: Improvement
Components: camel-core, camel-spring
Reporter: Claus Ibsen
Priority: Minor
In Java DSL its called server, but in XML DSL its called servers
{code}
<staticServiceDiscovery>
<!-- the syntax is name@hostname:port -->
<servers>hello-service@localhost:8081</servers>
<servers>hello-service@localhost:8082</servers>
</staticServiceDiscovery>
{code}
And in Java you do
{code}
.staticServiceDiscovery()
// the syntax is name@hostname:port
.server("hello-service@localhost:8081")
.server("hello-service@localhost:8082")
.end() // end static list
{code}
Notice how its called servers vs server.
Also the XML DSL has no documentation in the XML Schema
{code}
<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>
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)