<!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;">
    To scope or not to scope (domain.xml)
</h3>
<span style="margin-bottom: 10px;">
    reply from <a href="http://community.jboss.org/people/bstansberry%40jboss.com">Brian Stansberry</a> in <i>Management Development</i> - <a href="http://community.jboss.org/message/536159#536159">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>I agree that a given piece of metadata only existing one place in the model should be the pattern. The template idea makes that relatively painless.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>An exception I could see to that would be an element that represents a more general notion of a system property. Formalize the system property substition concept with an element that represents a variable that could be referenced elsewhere.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>As to the homogeneous group notion, my thoughts on this were to have a "profile" notion that would encapsulate most of the common configuration. Then clusters, groups or standalone servers would declare what profile they run. This is copied from something I whipped up on a plane to show people in recent clustering meetings, so take it as an illustration only:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-xml"><span class="jive-xml-tag">&lt;domain&gt;</span>
&#160;&#160; <span class="jive-xml-tag">&lt;profile name=&#8221;jee&#8221;&gt;</span>.... define a set of capabilities, configuration thereof<span class="jive-xml-tag">&lt;/profile&gt;</span>

&#160;&#160; <span class="jive-xml-tag">&lt;profile name=&#8221;datagrid&#8221;&gt;</span>.... define a different set of capabilities<span class="jive-xml-tag">&lt;/profile&gt;</span>

&#160;&#160; <span class="jive-xml-tag">&lt;profile name=&#8221;XYZ"&gt;</span>.... define a third set of capabilities<span class="jive-xml-tag">&lt;/profile&gt;</span>


&#160;&#160; <span class="jive-xml-tag">&lt;cluster name=&#8221;JEECluster&#8221; mcast_addr=&#8221;234.5.6.7&#8221; default_stack=&#8221;udp&#8221; profile=&#8221;jee&#8221;/&gt;</span>

&#160;&#160; <span class="jive-xml-tag">&lt;cluster name=&#8221;DataGrid&#8221; mcast_addr=&#8221;235.6.7.8&#8221; default_stack=&#8221;udp&#8221; profile=&#8221;datagrid&#8221;/&gt;</span>

&#160;&#160; <span class="jive-xml-tag">&lt;server-group name="SomeGroup"&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;server-group-property name="foo"&gt;</span>bar<span class="jive-xml-tag">&lt;/server-group-property&gt;</span>
&#160;&#160; <span class="jive-xml-tag">&lt;/server-group&gt;</span>

&#160;&#160; <span class="jive-xml-tag">&lt;server name=&#8221;jee1&#8221; bind_address=&#8221;192.168.0.100&#8221;&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;cluster-ref name=&#8221;JEECluster&#8221; cluster_address=&#8221;10.0.0.100&#8221;/&gt;</span>
&#160;&#160; <span class="jive-xml-tag">&lt;/server&gt;</span>

&#160;&#160; <span class="jive-xml-tag">&lt;server name=&#8221;jee2&#8221; bind_address=&#8221;192.168.0.101&#8221;&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;cluster-ref name=&#8221;JEECluster&#8221; cluster_address=&#8221;10.0.0.101&#8221;/&gt;</span>
&#160;&#160; <span class="jive-xml-tag">&lt;/server&gt;</span>


&#160;&#160; <span class="jive-xml-tag">&lt;server name=&#8221;grid1&#8221; bind_address=&#8221;192.168.0.102&#8221;&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;cluster-ref name=&#8221;JEECluster&#8221; cluster_address=&#8221;10.0.0.102&#8221;/&gt;</span>
&#160;&#160; <span class="jive-xml-tag">&lt;/server&gt;</span>

&#160;&#160; <span class="jive-xml-tag">&lt;server name=&#8221;grid2&#8221; bind_address=&#8221;192.168.0.103&#8221;&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;cluster-ref name=&#8221;JEECluster&#8221; cluster_address=&#8221;10.0.0.103&#8221;/&gt;</span>
&#160;&#160; <span class="jive-xml-tag">&lt;/server&gt;</span>


&#160;&#160; <span class="jive-xml-tag">&lt;server name=&#8221;somegroupA&#8221; bind_address=&#8221;192.168.0.104&#8221;&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;server-group-ref name=&#8221;SomeGroup&#8221;/&gt;</span>
&#160;&#160; <span class="jive-xml-tag">&lt;/server&gt;</span> 

&#160;&#160; <span class="jive-xml-tag">&lt;server name=&#8221;somegroupB&#8221; bind_address=&#8221;192.168.0.105&#8221;&gt;</span>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;server-group-ref name=&#8221;SomeGroup&#8221;/&gt;</span>



&#160;&#160; <span class="jive-xml-tag">&lt;/server&gt;</span>
&#160;&#160; 

&#160;&#160; <span class="jive-xml-tag">&lt;server name=&#8221;standalone&#8221; bind_address=&#8221;192.168.0.106&#8221;&gt;</span>
&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;profile-ref name=&#8221;XYZ&#8221;/&gt;</span> <span class="jive-xml-comment">&lt;!-- Standalone server --&gt;</span>
&#160;&#160; <span class="jive-xml-tag">&lt;/server&gt;</span>







<span class="jive-xml-tag">&lt;/domain&gt;</span></code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>A "cluster" element defines some clustering-related configuration. A server-group is a general group but not a cluster. Not sure exactly what that would be; but I threw it in, as Rich Sharples mentioned it had proved useful.&#160; Then a standalone server.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Jason, I'm not sure what a "clustered-service" is.</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/536159#536159">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>