The management of system properties can be done using the system properties service. This service supports setting of the VM global property values just as the java.lang.System.setProperty method and the VM command line arguments do. The configurable attributes of the system properties service include the following:
The following example illustrates the usage of the system properties service with an external properties file: <mbean code="org.jboss.varia.property.SystemPropertiesService" name="jboss.util:type=Service,name=SystemProperties"> <!-- Load properties from each of the given comma separated URLs --> <attribute name="URLList"> http://somehost/some-location.properties, ./conf/somelocal.properties </attribute> </mbean> The following example illustrates the usage of the system properties service with an embedded properties list: <mbean code="org.jboss.varia.property.SystemPropertiesService" name="jboss.util:type=Service,name=SystemProperties"> <!-- Set properties using the properties file style. --> <attribute name="Properties"> property1=This is the value of my property property2=This is the value of my other property </attribute> </mbean> |