Simplifying Resin XML With Dynamic Configuration - Part 2
Friday, December 30th, 2011Conditional Configuration Using Functions and Expressions
This second part of a multi-part article on Resin configuration examines how to employ conditional XML statements and EL functions to simplify Resin configuration. When we’re done, you’ll understand how the same configuration could be shared between deployment environments with entirely different Resin operation by using some following concepts:
- Conditional XML with <resin:if>, <resin:when>, <resin:choose>, <resin:otherwise>
- Null checking with “the Elvis Operator†?:
- Regular expression matching with =~
- Resource access with mbean() and jndi()
