I kinda agree with this, and in AS7 upstream you can now use deployment overlays to modify an individual descriptor without having to open up the archive (I am pretty sure some other servers also support this). I think we should also support reading the external config (wether XML or not) from an outside location somehow. Just using the ProjectStage is not really sufficient for all use cases IMHO, as you may have multiple production servers with different configurations. Personally I think there are quite a few advantages of configuring via XML: - It is obvious to new developers where your configuration settings are (META-INF or WEB-INF) - You can inspect any pre-built archive and see what settings are in effect - You can also potentially modify those settings with just zip and a text editor (I know this is not ideal, but if your fighting fires and just need to get your app back online this is a lot better than having to do a full re-build). - Servers that support modification of descriptors at deployment time can modify the config - There are lots of editors with XML support - There are lots of developers that know XML I really don't think that hard coding configuration via annotations is a good idea. Configuration should be plain text, and I think a lot of the push back against XML is more because of the Spring/J2EE overuse of it in the past has made a lot of developers hate XML. Stuart
|
- Re: XML Config Romain Manni-Bucau
- Re: XML Config Charles Moulliard
- Re: XML Config Bernard Łabno
- Re: XML Config Romain Manni-Bucau
- Re: XML Config Marius Bogoevici
- Re: XML Config Anil Saldhana
- Re: XML Config Mark Struberg
- Re: XML Config Marius Bogoevici
- Re: XML Config Bernard Łabno
- Re: XML Config Mark Struberg
- Re: XML Config Stuart Douglas
- Re: XML Config Romain Manni-Bucau
- Re: XML Config Charles Moulliard
- Re: XML Config Romain Manni-Bucau
- Re: XML Config Mark Struberg
- Re: XML Config Pete Muir
- Re: XML Config Marius Bogoevici
- Re: XML Config Mehdi Heidarzadeh
- Re: XML Config Bernard Łabno
- Re: XML Config Romain Manni-Bucau
- Re: XML Config Jason Porter