JBoss Community

Re: The replacement of system properties in *-ds.xml is done only for elements of string value type

created by Radim Hanus in IronJacamar - View the full discussion

I tried my best but it still doesn't work for me please help ;-)

 

fixed deployers/dependency-deployers-jboss-beans.xml

<bean name="DependenciesParserDeployer" class="org.jboss.deployers.vfs.plugins.dependency.DependenciesParserDeployer">
    <property name="stage"><inject bean="PreParseStage"/></property>
  </bean>
<bean name="DependenciesMDDeployer" class="org.jboss.deployers.vfs.plugins.dependency.DependenciesMetaDataDeployer">
    <property name="stage"><inject bean="PreParseStage"/></property>
</bean>
<bean name="DeploymentDependenciesDeployer" class="org.jboss.deployers.vfs.plugins.dependency.DeploymentDependencyDeployer">
    <property name="stage"><inject bean="PreParseStage"/></property>
</bean>

<bean name="PreParseStage" class="org.jboss.deployers.spi.deployer.DeploymentStage">
    <constructor>
      <parameter class="java.lang.String">PreParse</parameter>
      <parameter class="java.lang.String">Not Installed</parameter>
    </constructor>
</bean>

 

new deploy/myapp.ear/META-INF/jboss-dependency.xml:

<dependency xmlns="urn:jboss:dependency:1.0">
  <item whenRequired="PreParse" dependentState="Create">istep:type=Properties,name=SystemProperties</item>
</dependency>

 

I've tried a plenty of both whenRequired and dependentState combinations but no luck

Reply to this message by going to Community

Start a new discussion in IronJacamar at Community