Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-6233

System properties referencing each other in domain mode do not work

    XMLWordPrintable

Details

    Description

      The following set up:

      <system-properties>
         <property name="one" value="one1"/>
         <property name="two" value="${one}"/>
      </system-properties>
      

      works in standalone, so

      [standalone@localhost:9999 /] :resolve-expression(expression="${two}")
      {
          "outcome" => "success",
          "result" => "one1"
      }
      

      However, in domain mode the properties get passed in in the wrong order so

      [domain@localhost:9999 /] /host=master/server=server-one:resolve-expression(expression="${two}")
      {
          "outcome" => "success",
          "result" => "${one}"
      }
      

      ManagedServerOperationsFactory.getAllSystemProperties() should use a LinkedHashMap to preserve the order of the system properties, since at the moment in the server 'two' gets added before 'one'

      Attachments

        Activity

          People

            kkhan1@redhat.com Kabir Khan
            kkhan1@redhat.com Kabir Khan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: