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 2007/11/19 18:50:43 UTC

[jira] Created: (TUSCANY-1914) Callback services are not taken into account when calculating the total number of services and determining whether the service name should be included in the URI

Callback services are not taken into account when calculating the total number of services and determining whether the service name should be included in the URI
-----------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: TUSCANY-1914
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1914
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Core Runtime
    Affects Versions: Java-SCA-1.0
            Reporter: Simon Laws
            Assignee: Simon Laws
             Fix For: Java-SCA-Next


CompositeConfigurationBuilderImpl has the following code in the configureComponents method. 

           // Initialize service bindings
 *           for (ComponentService componentService : component.getServices()) {

                // Create default SCA binding
                if (componentService.getBindings().isEmpty()) {
                    SCABinding scaBinding = createSCABinding();
                    componentService.getBindings().add(scaBinding);
                }

                // Set binding names and URIs
                for (Binding binding : componentService.getBindings()) {
                    
                    // Binding name defaults to the service name
                    if (binding.getName() == null) {
                        binding.setName(componentService.getName());
                    }

                    String bindingURI;
                    if (binding.getURI() == null) {
*                        if (componentServices.size() > 1) {


Note that the service collection size that is tested to determine what form of URL to use (the last line) is a different collection compared to the outer loop (the first list). The callback services are added into the component.getServices() after componentServices has been calculated.



-- 
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


[jira] Resolved: (TUSCANY-1914) Callback services are not taken into account when calculating the total number of services and determining whether the service name should be included in the URI

Posted by "Simon Laws (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Laws resolved TUSCANY-1914.
---------------------------------

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

> Callback services are not taken into account when calculating the total number of services and determining whether the service name should be included in the URI
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1914
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1914
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-1.0
>            Reporter: Simon Laws
>            Assignee: Simon Laws
>             Fix For: Java-SCA-1.1
>
>
> CompositeConfigurationBuilderImpl has the following code in the configureComponents method. 
>            // Initialize service bindings
>  *           for (ComponentService componentService : component.getServices()) {
>                 // Create default SCA binding
>                 if (componentService.getBindings().isEmpty()) {
>                     SCABinding scaBinding = createSCABinding();
>                     componentService.getBindings().add(scaBinding);
>                 }
>                 // Set binding names and URIs
>                 for (Binding binding : componentService.getBindings()) {
>                     
>                     // Binding name defaults to the service name
>                     if (binding.getName() == null) {
>                         binding.setName(componentService.getName());
>                     }
>                     String bindingURI;
>                     if (binding.getURI() == null) {
> *                        if (componentServices.size() > 1) {
> Note that the service collection size that is tested to determine what form of URL to use (the last line) is a different collection compared to the outer loop (the first list). The callback services are added into the component.getServices() after componentServices has been calculated.

-- 
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