Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set system properties in standalone-full.xml in wildfly 8.2

I have added system-properties tag in standalone-full.xml, but its not working in standalone mode. However, if I add the same tag in domain.xml it's working for domain mode.

<?xml version='1.0' encoding='UTF-8'?>

<server xmlns="urn:jboss:domain:2.2">

    <extensions>
    ....
    </extensions>

    <system-properties>
        <property name="java.util.Arrays.useLegacyMergeSort" value="true"/>
    </system-properties>
</server>

According to this article on jBoss General configuration concepts

System property values can be set in a number of places in domain.xml, host.xml and standalone.xml.

Then what about standalone-full.xml?

I don't want to set it through command line and not even in java code.

like image 883
happy Avatar asked Jun 09 '15 07:06

happy


People also ask

Where is standalone xml in WildFly?

For a standalone server instance the history of the active standalone. xml is kept in jboss. server. config.


1 Answers

In standalone it's probably too late to set it in the configuration files. You'll need to add it to the standalone.conf or standalone.conf.bat in the JAVA_OPTS environment variable. A global property like that needs to be set before anything else attempts to use java.util.Arrays.

like image 64
James R. Perkins Avatar answered Nov 23 '22 06:11

James R. Perkins