You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Simon Laws (JIRA)" <tu...@ws.apache.org> on 2008/01/10 13:37:34 UTC

[jira] Updated: (TUSCANY-1937) Duplicate binding name not flagged as error

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

Simon Laws updated TUSCANY-1937:
--------------------------------

    Fix Version/s:     (was: Java-SCA-1.1)
                   Java-SCA-Next

Didn't make 1.1

> Duplicate binding name not flagged as error
> -------------------------------------------
>
>                 Key: TUSCANY-1937
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1937
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-1.0.1
>            Reporter: Simon Nash
>             Fix For: Java-SCA-Next
>
>
> If multiple bindings on a service or reference have the same name (explicit or defaulted), Tuscany should raise an error because this is illegal according to the SCA Assembly specification.  Both of the following modifications of myapp.scdl in samples/callback-ws-client should be illegal, but currently they are both accepted:
> - - - - - - - - example 1 - - - - - - - - 
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
>         targetNamespace="http://myapp"
>         name="myapp">
>     <component name="MyClientComponent">
>         <implementation.java class="myapp.MyClientImpl" />
>         <reference name="myService">
>             <interface.java interface="myserver.MyService"
>                     callbackInterface="myserver.MyServiceCallback" />
>             <binding.ws name="fred" uri="http://localhost:8086/MyServiceComponent" />
>             <binding.sca name="fred" />
>             <callback>
>                 <binding.ws />
>             </callback>
>         </reference>
>     </component>
> </composite>
> - - - - - - - - example 2 - - - - - - - - 
> <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
>         targetNamespace="http://myapp"
>         name="myapp">
>     <component name="MyClientComponent">
>         <implementation.java class="myapp.MyClientImpl" />
>         <reference name="myService">
>             <interface.java interface="myserver.MyService"
>                     callbackInterface="myserver.MyServiceCallback" />
>             <binding.ws uri="http://localhost:8086/MyServiceComponent" />
>             <binding.sca />
>             <callback>
>                 <binding.ws />
>             </callback>
>         </reference>
>     </component>
> </composite>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org