Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. 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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Java-SCA-1.0
    • Java-SCA-1.1
    • SCA Java Runtime
    • None

    Description

      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.

      Attachments

        Activity

          People

            simonslaws Simon Laws
            simonslaws Simon Laws
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: