This content has been marked as final.
Show 1 reply
-
1. Re: How to using propertyService to substitute parameter in ejb-jar.xml file
jaikiran Feb 19, 2010 1:24 PM (in response to liuxiaodu)Looks like a deployment ordering issue. I think the properties-service.xml is deployed after the parsing of ejb-jar.xml is done. So the system property values aren't set when the ejb-jar.xml is being parsed. You can do this:
Add the following piece of MBean (it's actually does the same as what the MBean in properties-service.xml does)
{code:xml}
<mbean code="org.jboss.varia.property.SystemPropertiesService"
name="me:service=MyProperties">
<attribute name="Properties">
ConnectionURLs=tcp://server:3507,tcp://server:3508
</attribute>
</mbean>
{code}
in JBOSS_HOME/server/[servername]/conf/jboss-service.xml instead of setting it through properties-service.xml in the deploy folder. That way, the properties set by this service will always be available before any of his deployments in the deploy folder.