It's ok, it works fine, but I want to be able to use the values dÃ©fined in the systemproperties-service.xml also !
but I want to be able to use the values dÃƒÂ©fined in the systemproperties-service.xml also !
That's a bit tricky actually. Because of the way the deployers work in AS-5, the dependency jboss:type=Service,name=SystemProperties should actually be added on the deployer which parses the ejb-jar.xml into metadata, which from what i see is not straightforward.
I think there's a way out. Instead of specifying the properties in the deploy/systemproperties-service.xml file, you can instead have a MBean as follows in the JBOSS_HOME/server/< servername>/conf/jboss-service.xml:
<!-- Jaikiran: Copied this SystemPropertiesService MBean from deploy folder --> <mbean code="org.jboss.varia.property.SystemPropertiesService" name="jboss:type=Service,name=MySystemProperties"> <attribute name="Properties"> serverName=blahblah </attribute> </mbean>
That way, you don't have to worry about the deployment ordering and dependencies, since the conf/jboss-service.xml is always loaded during bootstrap of the server, before it picks up the deployments.
Thanx for the answer. Looks like it works !
The only remaining little problem is that we used to have a per-webapp systemproperties-service, which seems not to be possible anymore.