Platform Parameters

From bemoko developer wiki

Jump to: navigation, search

Introduction

bemokoLive platform parameters are used to drive configuration for the platform and across all the sites. They can be configured either in the live-config.xml file or as JVM parameters. The table below outlines the supported platform parameters.

Parameters

All parameters can be set either via a JVM parameter or via the live-config.xml file. For example, to set the parameter datasource.mode you can either set the JVM parameter as follows:

-Dbemoko.datasource.mode=jndi


or in the live-config.xml file, where the dot notation in the parameter name is mapped to a nested XML structure, e.g.

<live>
  <datasource>
    <mode>jndi</mode>
  </datasource>
</live>

The following table lists the supported parameters with the default values written in bold.

Feature Parameter values Description
Active Profiles activeProfiles comma separated list of profiles Set which profiles should be activated for the platform
Platform configuration file config.file a file name Provide the location of an alternative live-config.xml file. This parameter is only available for setting as a JVM parameter
Datasource mode datasource.mode inmemory, jndi Indicate how persistence should take place
Datasource JNDI name datasource.jndi.name

More platform parameters (with example values):

-Dbemoko.datasource.mode=jndi
-Dbemoko.sites.location=C:\bemoko\sites
-Dbemoko.lib.location=C:\bemoko\lib
-Dbemoko.license.file=C:\bemoko\license\license.xml
-Dbemoko.activeProfiles=dev,fred
-Dfile.encoding=UTF-8
-XX:MaxPermSize=256m
-Djavax.net.ssl.trustStorePassword=password
-Dhttps.truststore="${JAVA_HOME}"/jre/lib/security/cacerts
-Duser.home=C:\Users\user