Re: [jboss-dev-forums] [Management Development] - domain.xml work
by Emanuel Muckenhuber
Emanuel Muckenhuber [http://community.jboss.org/people/emuckenhuber] replied to the discussion
"domain.xml work"
To view the discussion, visit: http://community.jboss.org/message/535762#535762
--------------------------------------------------------------
> Brian Stansberry wrote:
>
> Requirement #2 is somewhat in conflict with some of what I've read on this thread, wherein the domain.xml configuration data is applied as an override. That means the primary and authoritative representation of the domain is the combination of wherever the overridden configuation values come from + the domain.xml configuration.
>
> That's always going to partially be the case, because all the IOC wiring stuff is really configuration. But how far are we looking to push this concept? I'm going to give a specific example below, but I'm less interested in the specifics than the general issue of how much is meant to be coming from domain.xml.
What you mentioned about "the IOC wiring stuff is really configuration" - seem to be the one of the problems with configuration in general. Our current management view is actually a override of the original deployment metadata representing the actual beans. This requires classloading and the bean deployed, where actual management overrides update the IOC wiring (BeanMetaData).
So we were talking about using a offline MO (xml) model, defining this override and how a component is exposed though the management view. In case this would still applies the question is if this concept of configuration should be externalized in general - using the same way to register against the namespace/xpath of the domain.xml Scott mentioned.
Basically this seems to be more critical in terms of persistable configuration with default values, than runtime MOs just dispatching requests or exposing metrics - which should most probably just be merged into a configuration MO.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/535762#535762]
Start a new discussion in Management Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years
Re: [jboss-dev-forums] [Management Development] - domain.xml work
by Emanuel Muckenhuber
Emanuel Muckenhuber [http://community.jboss.org/people/emuckenhuber] replied to the discussion
"domain.xml work"
To view the discussion, visit: http://community.jboss.org/message/535744#535744
--------------------------------------------------------------
> Scott Stark wrote:
>
> The ManagedComponent view is an admin client view of the deployment metadata, including any override values applied previously. This view would show the value of properties that are specified at an admin domain view, but if I change such a property I have overriden it at a component level. It is a post admin edit view. If we are to allow editing of a local server domain.xml, changes to a ManagedComponent view would have to propagate to the domain.xml. Changes to properties that are dervied from some higher level admin domain would not be propagated because you would not be specifying the domain level value. The admin domain would have a separate component for that.
This is actually a tricky part. One the one hand we cannot only expose the domain.xml only, since there would be components missing - which don't have overrides. On the other hand we cannot expose the ManagedComponents based on the deployment meta data either, since it would contain the processed variables e.g. system properties - where ${jboss.server.home} might differ from one node to another.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/535744#535744]
Start a new discussion in Management Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years
Re: [jboss-dev-forums] [Management Development] - domain.xml work
by Brian Stansberry
Brian Stansberry [http://community.jboss.org/people/bstansberry%40jboss.com] replied to the discussion
"domain.xml work"
To view the discussion, visit: http://community.jboss.org/message/535652#535652
--------------------------------------------------------------
Requirement #2 is somewhat in conflict with some of what I've read on this thread, wherein the domain.xml configuration data is applied as an override. That means the primary and authoritative representation of the domain is the combination of wherever the overridden configuation values come from + the domain.xml configuration.
That's always going to partially be the case, because all the IOC wiring stuff is really configuration. But how far are we looking to push this concept? I'm going to give a specific example below, but I'm less interested in the specifics than the general issue of how much is meant to be coming from domain.xml.
For example, how does the profile configuration fit in? Referring to
a) the "user configuration" stuff described at http://community.jboss.org/docs/DOC-14742 http://community.jboss.org/docs/DOC-14742
b) the "server configuration" stuff described at http://community.jboss.org/docs/DOC-14743 http://community.jboss.org/docs/DOC-14743
We could, in increasing order of verbosity:
1) Ignore the whole thing; the profile name comes from -c and the configuration is outside of domain.xml
2) Declare the profile name in domain.xml (or maybe via -c) and allow some configuration overrides (e.g. a hot-deployment scan period)
3) Include a) in domain.xml
4) Include a number of a)s in domain.xml and use -c to set which one is used
5) Include both a) and b)
6) Include a bunch of a)s and all possible b)s
Options 2, 3, 4 seem reasonable.
* The same kind of thing pops up with Infinispan and JGroups configs, where AS 5 provides a number of named valid configs to choose from and the services that need a cache/channel include the name to use in their own config, with a global property to set defaults.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/535652#535652]
Start a new discussion in Management Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years