You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luca Burgazzoli (JIRA)" <ji...@apache.org> on 2017/04/24 08:06:04 UTC

[jira] [Updated] (CAMEL-11191) Service Call - XML configuration of static servers called servers instead of server

     [ https://issues.apache.org/jira/browse/CAMEL-11191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luca Burgazzoli updated CAMEL-11191:
------------------------------------
    Fix Version/s: 2.20.0

> 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
>            Assignee: Luca Burgazzoli
>            Priority: Minor
>             Fix For: 2.20.0
>
>
> 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)