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/04/17 15:03:21 UTC

[jira] Resolved: (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 resolved TUSCANY-1937.
---------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: Java-SCA-Next)
                   Java-SCA-1.2

As part of the new URI calculation code in CompositeConfigurationBuildler there is code that raises a validation warning if two bindings appear with the same name. See CompositeConfigurationBuilderImpl.constructBindingName()

> 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
>            Assignee: Simon Laws
>             Fix For: Java-SCA-1.2
>
>
> 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