Configuration

Sources

Highest priority first:

  1. Program arguments: -Key value, or -Dkey=value (also sets a Java system property).
  2. src/main/resources/app-resources/Properties, a standard Java properties file:
shop.currency=EUR

Reading

final String currency = application().properties().get( "shop.currency" );
final Integer pageSize = application().properties().getInteger( "shop.pageSize" );

null when unset. (TODO: typed properties and defaults.)

Framework properties

Property
WOPortHTTP port. Default 1200
WOHostHost name
WOApplicationNameApp name, as wotaskd knows it
WOMonitorEnabledYES in deployment: turns development mode off
WOLifebeatEnabled, WOLifebeatDestinationPort, WOLifebeatIntervalLifebeats to wotaskd
WOOutputPathSend console output to a file