You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Bernd Fondermann <bf...@brainlounge.de> on 2007/08/05 16:35:23 UTC

ConfigurationInterceptor

Hi,

to recover from last days jar sorting marathon, I enjoyed a little 
finger exercise with James/Spring. :-)

I added configuration interceptor capabilities to the startup process.

This interceptor is able to alter the configuration given in 
james-config.xml before it is applied to the components.

I used this in a trivial example to map all privileged port numbers to 
unprivileged ports.

Other more advanced use cases for this could be
+ reading local config adjustments using the same build artefact as is 
typical in a development/staging/production scenario
+ reading global adjustments over the net (distribute config changes for 
server farm, when machines cycle)
+ prevent mail from actually being sent on dev systems or when unit testing
+ inject mailets at startup time
+ switch databases or even repository types (for different Postage runs) 
without altering files.

Revision 562874 has it all.

   Bernd

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org