<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Profiles in domain.xml
</h3>
<span style="margin-bottom: 10px;">
    reply from <a href="http://community.jboss.org/people/alex.loubyansky%40jboss.com">Alexey Loubyansky</a> in <i>Management Development</i> - <a href="http://community.jboss.org/message/546490#546490">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><blockquote class="jive-quote"><p>Scott Stark wrote:</p><p>I still think the best comprimise would be to have profile definitions in the domain in terms of the required capabilities potentially simplified by having implied capabilities associated with each application type that could be overriden by the admin.</p></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>Ok, this makes sense. Taking it further... The profiles in the domain schema (as they are now) are kind of redefined, i.e. it's not the same profile definition/configuration as the actual profile configuration like here </span><a class="jive-link-external-small" href="http://community.jboss.org/wiki/AS6ServerSideConfiguration" target="_blank">http://community.jboss.org/wiki/AS6ServerSideConfiguration</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So, I want to clarify the purpose and meaning of this redefinition in the domain config. Perhaps, it also makes sense to choose a different name not to confuse with the actual profiles.<br/>I think if we can make domain.xml contain only the concepts/notions that are defined in its schema, it would be the best. I.e. if it contained (was expressed in) only the terms defined for it and learning additional concepts/notions for the user wouldn't be a requirement to understand the configuration.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Can we think about the profiles here as a set of capabilities that might be activated once there is an application requiring them? I.e. not to think about them as defining capabailities that must be activated after the start-up?<br/>Perhaps, something like "environment" would describe it?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So, what I think we can do:<br/>- define a set of implied capabilities associated with each application type (or define the "environment" for each application type);<br/>- if an application is mentioned in the domain.xml w/o specified by the admin "environment" it requires, we assume our defaults;<br/>- if the admin wants to be precise, it could look like<br/>&#160; &lt;application name="" path=""&gt;<br/>&#160;&#160;&#160; &lt;environment name=""/&gt;<br/>&#160;&#160;&#160; &lt;environment-ref name=""/&gt;<br/>&#160; &lt;/application&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>- there could be a section in the domain config where the admin can define his own named environments and reference them later for applications.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Then actually the set of applications mentioned in the domain.xml will dictate (through their "environments") which profiles/subprofiles to activate and run.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Does it make sense?</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/546490#546490">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Management Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2107">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>