0 Replies Latest reply on Apr 13, 2012 7:17 AM by Daniel Straub

    Expressions in domain/standalone.xml

    Daniel Straub Newbie

      Expressions in domain/standalone.xml are treated differently by the corresponding subsystems, e.g


      <subsystem xmlns="urn:jboss:domain:web:1.1" native="false" default-virtual-server="default-host" instance-id="${jboss.server.name}">  works

          <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" proxy-host="${myproxy}" /> doesn't work

      <subsystem xmlns="urn:jboss:domain:logging:1.1">

              <periodic-rotating-file-handler name="FILE">

                   <file path="/misc/remotelog/${jboss.server.name}.log"/>  doesn't work



      I developed some subsystems themselves and know that a subsystem is itself responsible for xml parsing.

      They have to deal with e.g. SimpleAttributeDefinition, the SimpleAttributeDefinitionBuilder has a flag ""allowExpression" and so on.

      In the AS sources I found ca. 185 references for SimpleAttributeDefinitionBuilder.setAllowExpression(true) - the logging subsystem isn't there


      Is it not better to first replace all expressions in the configuration before the subsystems start parsing ? And not let the subsystem decide how to work with expressions.

      A common strategy would be desirable.



      (I use 7.1.0.final or eap-6.0.beta 1)