Re: [jboss-dev-forums] [Management Development] - Profiles in domain.xml
by Brian Stansberry
Brian Stansberry [http://community.jboss.org/people/bstansberry%40jboss.com] replied to the discussion
"Profiles in domain.xml"
To view the discussion, visit: http://community.jboss.org/message/545934#545934
--------------------------------------------------------------
I think if elements like threads, security-policy, containers etc exist outside of a server-group (or one if it's children) it should either be because:
1) Whatever the element describes is intrinsically scoped to the domain (e.g. domain-configuration)
or
2) That element serves as a common confiugration that can be referenced by a (child of) server-group, to avoid having to repeat things across multiple server-group elements.
The latter can save a lot of boilerplate in a complex domain, but it's not intuitive. Perhaps such elements should be enclosed in a container element (e.g. "templates") that explains their usage. (I don't like "templates", just haven't thought of anything else.)
I definitely don't think that the presence of something like web-container at the domain level should imply that every server runs a web container.
If we follow David's thinking that a server's capabilities are determined by what the end user deployments required, then the fixed profile notion largely goes away. Then there could be a 3rd usage for things like threads, security-policy, containers, etc:
3) as the default configuration for X if it turns out that deployments in a server-group introduce a requirement for X.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/545934#545934]
Start a new discussion in Management Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 7 months
Re: [jboss-dev-forums] [Management Development] - Profiles in domain.xml
by David Lloyd
David Lloyd [http://community.jboss.org/people/david.lloyd%40jboss.com] replied to the discussion
"Profiles in domain.xml"
To view the discussion, visit: http://community.jboss.org/message/545932#545932
--------------------------------------------------------------
> Alexey Loubyansky wrote:
>
> Ok, I'm new here, so to catch up I'll be asking questions of various degrees of ignorance.
>
> AFAIU, domain.xml can list profiles necessary to start a server instance. I want to better understand the purpose and effects of this.
> What kind of profiles are those? E.g. would web or ejb profiles be an example?
> The reason it's confusing to me is that domain.xml also lists containers, including e.g. web-container. So, the presense of web-container in domain.xml kind of implies the presense of the web profile. Or am I missing something?
> What if the web profile is not on the list but web-container is present?
No, this was my conclusion as well. In fact I think that the presence of the web container isn't the only thing that should imply that a web container should be set up. Any web-affecting deployment (WAR, or web services, or even something indirect) should trigger the "profile"'s existence. Perhaps the web container ought to have sensible defaults in the event that no information is specified but web deployments are present. Or perhaps in this event, the default web container definition will automatically be written back to domain.xml?
Anyway that's just my opinion.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/545932#545932]
Start a new discussion in Management Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 7 months