0 Replies Latest reply on Nov 25, 2013 3:07 PM by Vladimir Tomenko

    JBoss EAP 6.1: problem with write-attribute operation for system properties

    Vladimir Tomenko Newbie

      Having the following system property:

      <system-properties>
      <property name="foo" value="test1"/>
      </system-properties>

       

      I want to change its value to "test2" using Management API. In JBoss 7.1.1 this could be achieved with the following command:

          /system-property=foo:write-attribute(name="value" value="test2")

       

      In EAP 6.1 however, the same command results in:

      {
          "outcome" => "failed",
          "failure-description" => "JBAS014792: Unknown attribute test2",
          "rolled-back" => true
      }

      The only way I can use write-attribute for system property seems to be:

      /system-property=foo:write-attribute(name="value")
      {"outcome" => "success"}

      which effectively unsets value of the property:

       

      <system-properties>
      <property name="foo"/>
      </system-properties>

       

      I there any other way to update value of system property in EAP 6.1?