How to set quote character as system property value via CLI

Solution Verified - Updated -

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Issue

  • Can not set quote character as system property value via CLI?
  • How to make use of backslash ( \ ) with system property of CLI ?

Resolution

Setting property

[standalone@localhost:9999 /] /system-property=keyQuote:add(value="\\\"")
{"outcome" => "success"}

Entry goes into standalone.xml

<system-properties>
     <property name="keyQuote" value="&quot;"/>
</system-properties>

Reading property

[standalone@localhost:9999 /] /system-property=keyQuote:read-attribute(name=value)
{
    "outcome" => "success",
    "result" => "\""
}

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.