Posted By:
Jie_Zou
Posted On:
Thursday, December 7, 2006 07:04 PM
For a web application, its life cycle can be development, test, and production. The environmental settings are different for each stage such as the host of a database server to be used. It will be very helpful that different configure file can be used depending on running environment. For instance, faces-config-develop.xml for development, faces-config-test.xml for test, and faces-config-prod.xml for production. The running environment can be determined by a system property such as System.getProperty("environment") which can be set when the JVM starts (java -Denvironment=prod). Is this possible? Thanks!
More>>
For a web application, its life cycle can be development, test, and production. The environmental settings are different for each stage such as the host of a database server to be used.
It will be very helpful that different configure file can be used depending on running environment. For instance, faces-config-develop.xml for development, faces-config-test.xml for test, and faces-config-prod.xml for production. The running environment can be determined by a system property such as System.getProperty("environment") which can be set when the JVM starts (java -Denvironment=prod).
Is this possible?
Thanks!
<<Less