JBoss – using properties-service.xml to set environment variables

In every JBoss installation there will be a file called “properties-service.xml” in the deploy folder.  This file allows you to setup environment variables (rather then setting them at the JVM/System level) which all deployed applications can then use by calling the System.getProperty() method.  Just uncomment the section shown below to enable some global properties or use the URLList to point to external properties files:

 <!--
    Set raw properties file style properties.
 -->
 <attribute name="Properties">
 ATTRIBUTE_NAME_1=somevariable
 ATTRIBUTE_NAME_1=anotherVariable
 </attribute>
 
Advertisements

One thought on “JBoss – using properties-service.xml to set environment variables

  1. Hi Michael,
    Thanks for the tip it work perfect for LiveCycle ES2 and 2.5. But I can’t seem to find the properties-service.xml file in LiveCycle ES3 turnkey install. Do you have any idea what our options are here (JBoss is upgraded to 5.1 in ES3).

    Thanks in advance

    Cheers
    Kim Christensen
    Dafolo A/S

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s