Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-1863

'PreferLocal' improperly initialized in SCA binding (tooling)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • 8.0.0
    • None
    • None
    • None
    • Hide

      Start a new project, add an SCA binding.
      Observe that the IDE shows 'true' for preferLocal. (Touch the 'clustered' box to enable it)
      Note that no attribute is in switchyard.xml.

      Show
      Start a new project, add an SCA binding. Observe that the IDE shows 'true' for preferLocal. (Touch the 'clustered' box to enable it) Note that no attribute is in switchyard.xml.

    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.

      Attachments

        Activity

          People

            bfitzpat_rh Brian Fitzpatrick (Inactive)
            rhn-support-rick Rick Wagner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: