2 Replies Latest reply on Aug 2, 2011 5:33 AM by rbattenfeld

    JBoss-6.1.0-SNAPSHOT - System Properties ignored when restarting

    rbattenfeld

      Hi

       

      I recognized that the system properties in properties-services.xml are nicely resolved when an application is deployed and jboss is running but not when the application is deployed first and then jboss is started.

       

      We defined some properties in the ejb-jar.xml or other configuration files like the following example:

       

      For activation properties,  ${com.swx.ptp.trx.ejb.impl.trxfile.FileProcessMDB.maxSession} is ignored:

      <activation-config-property>

           <activation-config-property-name>maxSession</activation-config-property-name>

           <activation-config-property-value>

                ${com.swx.ptp.trx.ejb.impl.trxfile.FileProcessMDB.maxSession}    

           </activation-config-property-value>

      </activation-config-property>

       

      For env-entry properties, the deployment fails with an error message:

      <env-entry>

           <env-entry-name>batchSize</env-entry-name>

           <env-entry-type>java.lang.Long</env-entry-type>

           <env-entry-value>${com.swx.ptp.trx.ejb.impl.trxfile.FileProcessMDB.batchSize}</env-entry-value>

      </env-entry>

       

      Is this an expected behaviour and we have to make workarounds for this?

       

      Thanks for helping

      Ralf