[JBoss AS7]: where to set environment properties

Fabio B. picture Fabio B. · Aug 9, 2012 · Viewed 9.2k times · Source

I need to set the jvm system property file.encoding to utf-8, in my JBoss7 environment.

Where do I have to make this change? standalone.xml?

Answer

kostja picture kostja · Aug 9, 2012

There is a section in all the instance config files, standalone.xml as well, named system-properties.

You can define your properties like this:

<system-properties>
    <property name="file.encoding" value="utf-8"/>
</system-properties>

Should the section be missing, just add it immediately after the <extensions> section.