5 Replies Latest reply on Nov 19, 2011 4:04 AM by Richard Kennard

    Configure JBoss pre-processing of XML configuration files

    Richard Kennard Novice

      Hi guys,

       

      JBoss appears to have some kind of non-standard (but cool!) facility for pre-processing XML configuration files. You can do...

       

      <someProperty>${foo:bar}</someProperty>
      

       

      ...and it will replace it with either 'bar' or the value from the '-Dfoo' command line parameter (if any).

       

      This appears to extend to configuration files within my own app, such as ejb-jar.xml and web.xml. But it does *not* appear to work in all places. For example if I do...

       

      <transport-guarantee>${web.transport.guarantee:NONE}</transport-guarantee>
      

       

      ...then I get...

       

        org.xml.sax.SAXException: cvc-enumeration-valid: Value '${web.transport.guarantee:NONE}' is not facet-valid with respect to enumeration '[NONE, INTEGRAL, CONFIDENTIAL]'. It must be a value from the enumeration.

       

      What is this pre-processing facility called? Where can I find more information about it? And can I configure it?

       

      Regards,

       

      Richard.