System property expansion in JMole_*.xml configuration

Issue #21 resolved
Joe Siponen created an issue

We need to deploy our application in many environments for testing before going to production or live. Much of the configuration are set in System Properties by run.sh (using -DmyKey=myValue) with values that change based on the environment.

We would like to use many of these values in the JMole configuration to set values in messages and to set specific thresholds for specific environments. As such it would be nice then to have some way to expand system properties in the configuration files.

I suggest that the following kinds of expressions could be expanded in the configuration files.

One expression to expand a named system property:

${systemPropertyThreshold}

One expression to expand a named system but with a default value if the property is not set:

${systemPropertyThreshold:100}

This type of property expansion is used althrough JBoss AS 6.1.0 as provided by the service org.jboss.varia.property.SystemPropertiesService.

Comments (2)

  1. Log in to comment