Simplifying Resin XML With Dynamic Configuration - Part 1
Configuration variable substitution using <resin:properties> and rvar()
This first part of a multi-part article on Resin configuration examines how to use EL variables in various situations to simplify Resin configuration. When we’re done you’ll understand how a simple database resource like this:
<database jndi-name="jdbc/mysql">
<driver type="com.mysql.jdbc.Driver">
<url>jdbc:mysql://user:password@$192.168.1.1:3306/dbname</url>
</driver>
</database>
… can be dynamically merged with per-server properties like this:
dbserver : 192.168.1.1 app-0.dbserver : 192.168.1.23 app-1.dbserver : 192.168.1.64
… resulting in configuration that is simple, powerful, and well suited for deployment in a cloud environment.
Read the rest of this entry on the Caucho Wiki »
Tags: configuration, dynamic, import, resin:import, resin:properties, rvar

January 16th, 2012 at 5:37 am
[...] Simplifying Resin XML With Dynamic Configuration - Part 1 Resin Cloud deployment with Amazon WS EC2 and Euca Tools [...]