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:

      <property name="foo" value="test1"/>


      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:

      {"outcome" => "success"}

      which effectively unsets value of the property:


      <property name="foo"/>


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