The goal of this is to be able to build an ear and deploy it onto various servers (test/production) without the need for modifying the ear or properties in it before each deployment. We also did not want to be tied to using a particular build system such as Ant to set the properties for us. The following assumes you are deploying your application under JBoss but a similar approach my be possible under other app servers.

This guide is broken down into two parts. The first part covers configuring components that need to be configured prior to Seam starting. This includes your datasource and things like web.xml and application.xml. The second part covers how to gain access to configuration properties (whether user specific or global) from within your Seam application.