Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-2897

preferLocal not being set properly through SY tools for SCA binding

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: 3.0
    • Component/s: tooling
    • Labels:
      None

      Description

      The SCA binding includes a boolean option, 'preferLocal'.
      According to SCABindingModel, SCAInvoker and observed behavior, if the value is not set to 'true' then the 'prefer Local' behavior is not enabled.
      The problem is that the JBDS tooling shows a default value of 'true' for an SCA binding, but the generated switchyard.xml shows no 'preferLocal' attribute in the SCA Binding element:
      <sca:binding.sca sy:clustered="true" sy:targetNamespace="urn:com.example.switchyard:world:1.0" sy:target="WorldService" sy:loadBalance="RandomStrategy" name="sca1"/>

      Toggling the value in the IDE adds the attribute:
      <sca:binding.sca sy:clustered="true" sy:targetNamespace="urn:com.example.switchyard:world:1.0" sy:target="WorldService" sy:loadBalance="RandomStrategy" sy:preferLocal="true" name="sca1"/>

      The problem: If the user does not toggle the value (taking the defaults given), then JBDS shows a 'true' value but no 'true' value goes into switchyard.xml. Later, the runtime will give 'false' behavior because it's the default.

        Gliffy Diagrams

          Attachments

          1. emf.compare.versions.jpg.png
            emf.compare.versions.jpg.png
            79 kB
          2. emf1.png
            emf1.png
            44 kB
          3. sca Icon remaining.png
            sca Icon remaining.png
            53 kB
          4. switchyard-2897.zip
            13 kB

            Issue Links

              Activity

                People

                • Assignee:
                  bfitzpat Brian Fitzpatrick
                  Reporter:
                  bfitzpat Brian Fitzpatrick
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated: