I'm using JBoss 7.1.3 and Spring 3.1.4.RELEASE. I was wondering if there's a way I can put system properties in some configurable way in my WAR file instead of adjusting the JBoss standalone.xml file, which normally includes
<property name="property" value="value"/>
I'm trying to minimize the setup other developers have to do on their machiens. If I can embed the system properties in the WAR file and have the same effect, no one will have to do any additional configurations to their systems.
Thanks, - Dave
You can write an ejb @singleton bean and annoate it with @startup in a @poscontruc method oh this bean you can read your resources and set the system properties. On the other hand you can use the java serviceloader architecture. That is IMHO a portable way.