<bean id="wroProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean"> <property name="location" value="file:#{systemProperties['jboss.home.dir']}/standalone/configuration/wro.properties" /> </bean>
Note the: file:#{systemProperties['jboss.home.dir']} part.
Because jboss will assign the value of the JBOSS_HOME variable to the jboss.home.dir variable when it starts up, in the configuration file, just get the value of jboss.home.dir.