[jboss-user] [JBoss Seam] - Re: Application config file outside the EAR
modoc
do-not-reply at jboss.com
Fri Aug 17 20:45:01 EDT 2007
It may be the best option currently, however, this is an issue that is near and dear to me.
My day job has me working on a pretty nice commercial Java web application framework, which includes a really well thought out (in my opinion) configuration mechanism involving a config path (like a classpath). You configure your components using .properties files with the name of the component placed in the path of the component hierarchy, etc...
The cool part is that you can have a component, let's say one that is part of the framework itself (not a new one you made), which has it's default configuration as part of the framework. In your application/project you have a config directory, where you override or update a few of those settings, as needed. In your project you also have a liveconfig directory, where your non-server specific production settings go (say upping the cache size, or database connection pool size, or whatever). In the server instance on your desktop/laptop you also have a localconfig where you put settings specific to your computer (mail server, a local instance of an external webservice, etc... And in the server instance on the shared dev, or test, or staging, or preview, or production servers, they also have the environment and server specific settings there.
That way you can build and deploy the project locally, testing it, push that kit to shared dev, then to test, then to stage, etc... all the way into production, and the application just works. It's really brilliant, and pretty essential for big enterprise type environments.
Maybe I'm missing something, but I haven't found the parallel functionality in JBoss or Seam.
As part of my rant here, I want to ask for component specific properties files, instead of having to use the more cumbersome xml files, or a shared seam.properties:) I'd also love to see a standard component naming scheme that isn't so similar to package and class naming. A component's namespace and name shouldn't be related to it's package and class necessarily, and by formatting them the same, there's some implied link and confusion (imho).
I'd like to get a discussion going on configuration mechanisms, layers, etc... in general.
Devon
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075409#4075409
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075409
More information about the jboss-user
mailing list