geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Kirby (JIRA)" <j...@apache.org>
Subject [jira] Created: (GERONIMO-2735) Add property substitution capability in the config.xml and plan files
Date Tue, 16 Jan 2007 13:13:27 GMT
Add property substitution capability in the config.xml and plan files
---------------------------------------------------------------------

                 Key: GERONIMO-2735
                 URL: https://issues.apache.org/jira/browse/GERONIMO-2735
             Project: Geronimo
          Issue Type: New Feature
      Security Level: public (Regular issues)
    Affects Versions: 2.0-M1, 1.1.1, 1.1.x
         Environment: All
            Reporter: Ted Kirby
            Priority: Minor


Allow property substitution as it works in maven, Spring, and JBoss.

Allow a geronimo.properties type file.  In that file, allow something like this:

tomcat.port=9090
tomcat.listen.ip=10.0.0.7

In the config.xml, then allow the following:

...
<module name="...">
    <gbean name="TomcatConnector">
        <attribute name="port">${tomcat.port}</attribute>
        <attribute name="host">${tomcat.listen.ip}</attribute>
   </gbean>
</module>

The server reads the property file on boot (if one exists).  When the config.xml is processed,
it substitutes the declared property.

Properties might also come from a GBean.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message