[jboss-jira] [JBoss JIRA] (WFLY-3510) support a form of modular XML configuration file
David Lloyd (JIRA)
issues at jboss.org
Tue Jun 17 10:22:27 EDT 2014
[ https://issues.jboss.org/browse/WFLY-3510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12977051#comment-12977051 ]
David Lloyd commented on WFLY-3510:
-----------------------------------
If the configuration is modular, then XML is probably the least logical format for it, due to the way that root elements work and are aggregated (because we define our XML structure via w3c schema). It might be better to use (for example) JSON or DMR format for this case, with a file per resource organized in a directory hierarchy that reflects the resource structure, which has the advantage of being much simpler and not requiring special parsing. Using this strategy, in many cases, collections can be organized in a sorted manner, which will minimize diffs.
> support a form of modular XML configuration file
> ------------------------------------------------
>
> Key: WFLY-3510
> URL: https://issues.jboss.org/browse/WFLY-3510
> Project: WildFly
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Reporter: James Strachan
> Assignee: Jason Greene
> Priority: Minor
>
> I realise the history of wildfly & that things used to use many XML files and there was a move to unify things. But some modularity of configuration can be a good thing ;)
> With layered products it would be handy to allow separate XML configuration files to configure separate layers/features/parts. e.g. one for web, one for FSW, one for Infinispan/JDG, one for Portal and so forth. e.g. a layered product could release its own XML configuration file by default.
> Rather than it being subsystem specific (e.g. each layer may need to define a database) its more a way of grouping parts of the XML into a separate underlying source XML file.
> e.g. so folks could combine any of the (say) 4 XML files for web / FSW / JDG / Portal to make a configuration for a new wildfly container with different pieces depending on how folks want to map features to JVMs.
> e.g. rather than specifying a single XML file to startup, we'd allow specifying N different XML files with 1 configuration file being the default file used for adding new subsystems; otherwise the configuration system would remember which file a particular bit of configuration comes from; so if its changed, it knows which configuration needs to be written to which file.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the jboss-jira
mailing list