Welcome Guest! Log in
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…


Java options are generally added directly to the Java command launching the Runtime with the -DmyOption01=value01 argument.

The Stambia DI Runtime allows to set them in a more convenient way directly in its configuration file.

All the options specified will then be loaded just after the Runtime's start.

Prerequisites:

  • Stambia DI Runtime S17.4.0 or higher

 

Configuration

Open the <stambiaRuntime>/properties/engineParameters.xml file.

Then uncomment or add the following node:

<javaConfiguration>
        <property name="myOption01" value="value01"/>
        <property name="myOption02" value="value02"/>
</javaConfiguration>

 

You can define as many "property" node as required.

 

Externalizing the configuration in another file

If needed, the java additional options can be externalized in another file than engineParameters.xml.

For this, simply put the "javaConfiguration" node inside another file (javaOpts.xml file for instance).

Then, add or uncomment the following line in the engineParameters.xml file.

<javaConfiguration file="./javaOpts.xml"/>

 

Note

A sample is available in the <stambiaRuntime>/properties/samples/engineParameters/ folder of the Runtime

 

Articles

Suggest a new Article!