<!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;">
    domain.xml work
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/scott.stark%40jboss.org">Scott Stark</a> in <i>Management Development</i> - <a href="http://community.jboss.org/message/535088#535088">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Here is an initial example of the domain.xml effort. The notion is&#160; that the domain.xml is a static metadata model of an API for configuring&#160; the server. This can be use for a rest client, command line client,&#160; junit client, etc.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The relatively easy part is deciding what features we&#160; want to support via the model. The issues to resolve are how to:</p><p>1. Map this metadata onto the admin API of the profileservice. In&#160; general the domain.xml is a subset of the full metadata the service&#160; supports. The ManagedComponent view of the deployment metadata is the&#160; full featured configuration.</p><p>2. Provide a plug in to handle the&#160; mapping of the domain.xml metadata onto the ManagedComponent associated&#160; with the domain.xml element namespace. Currently the ManagedComponent is&#160; a view that is generated after deployment.</p><p>3. Deal with the different mechanisms for producing the runtime&#160; components from metadata. Some layers are using BeanMetaDataFactorys,&#160; jboss-managed plugins, custom deployers to manipulate metadata. Pulling&#160; in the domain.xml element override at the correct phase in the&#160; deployment chain is an issue.</p><p>4. Dealing with rollbacks of the domain.xml if we allow direct&#160; editing of the a domain.xml file. If the domain.xml is essentially a&#160; subset of admin edits of the available ManagedComponents, a rollback&#160; needs to write out a revised domain.xml that corresponds to the previous&#160; subset view.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre ___default_attr="xml" jivemacro="code"><p>&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br/>&lt;!--<br/>&#160;&#160;&#160; The JBoss ApplicationServer domain configuration file.<br/> --&gt;<br/>&lt;domain xmlns="urn:jboss:profileservice:domain:1.0"<br/><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; xmlns:xi="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XInclude" target="_blank">http://www.w3.org/2001/XInclude</a><span>"&gt;</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; &lt;server name="server1" xmlns="urn:jboss:profileservice:server:1.0"&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;properties&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;property name="timeout"&gt;3000&lt;/property&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- Enable EAR classloader isolation. --&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;property name="classloaderIsolation"&gt;true&lt;/property&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/properties&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;shutdown-timeout&gt;3600000&lt;/shutdown-timeout&gt;<br/>&#160;&#160;&#160; &lt;/server&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160; &lt;jdbc-resources xmlns="urn:jboss:profileservice:jdbc-resources:1.0"&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;jdbc-resource jndi-name="jdbc/TimerPool" pool-name="TimerPool" enabled="true"&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;min-pool-size&gt;1&lt;/min-pool-size&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;max-pool-size&gt;10&lt;/max-pool-size&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;username&gt;userx&lt;/username&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;password&gt;passy&lt;/password&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;transaction-isolation&gt;TRANSACTION_READ_COMMITTED&lt;/transaction-isolation&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;properties&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry key="query-timeout" value="30" /&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry key="new-connection-sql" value="select * from x" /&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/properties&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;/jdbc-resource&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;jdbc-resource jndi-name="java:DefaultDS" pool-name="DefaultDS" enabled="true"&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;min-pool-size&gt;1&lt;/min-pool-size&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;max-pool-size&gt;10&lt;/max-pool-size&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;username&gt;sa&lt;/username&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;password&gt;&lt;/password&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;connection-url&gt;jdbc:hsqldb:hsql://${jboss.bind.address}:1701&lt;/connection-url&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;driver-class&gt;org.hsqldb.jdbcDriver&lt;/driver-class&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;type-mapping&gt;Hypersonic SQL&lt;/type-mapping&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;transaction-isolation&gt;TRANSACTION_READ_COMMITTED&lt;/transaction-isolation&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;properties&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry key="query-timeout" value="30" /&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry key="new-connection-sql" value="select * from x" /&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry key="idle-timeout-minutes" value="0" /&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry key="track-statements" value="true" /&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry key="security-domain" value="HsqlDbRealm" /&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry key="prepared-statement-cache-size" value="32" /&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/properties&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;/jdbc-resource&gt;<br/>&#160;&#160;&#160;&#160; &lt;/jdbc-resources&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160; &lt;jms-resources xmls="urn:jboss:profileservice:jms-resources:1.0"&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;topic name="topic/MyTopic" /&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;queue name="queue/MyQueue"&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;depends name="someDependencyRealNameNotJMXObjectName" /&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;/queue&gt; <br/>&#160;&#160; &lt;/jms-resources&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160; &lt;threads xmlns="urn:jboss:profileservice:threads:1.0"&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;!-- The system thread group for all JBoss threads. --&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;thread-group name="SystemThreadGroup" group-name="System Threads" daemon="true"/&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;!--<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; ~ This thread pool is for SHORT-RUNNING tasks that block very little or not at all.&#160; Long-running<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; ~ tasks submitted to this pool may cause starvation and extended blocking.<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; --&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;thread-group name="ShortTasksThreadGroup" group-name="Short Tasks Threads"&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;parent-thread-group name="SystemThreadGroup"/&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;/thread-group&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;!--<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; ~ This thread pool is for LONG-RUNNING tasks that may block for extended periods, such as<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; ~ blocking I/O network connection threads.&#160; Short-running tasks submitted to this pool may<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; ~ cause excessive lock contention and performance degradation.<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; --&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;thread-group name="LongTasksThreadGroup" group-name="Long Tasks Threads"&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;parent-thread-group name="SystemThreadGroup"/&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;/thread-group&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;!-- A simple direct executor which is always available for use. --&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;executor name="DirectExecutor" type="direct"&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/executor&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;executor name="BoundedThreadPool" type="bounded-queue-thread-pool"&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry key="blocking" value="true" /&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry key="thread-factory" value="ShortTasksThreadFactory"/&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry key="queue-length.count" value="500"/&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry key="queue-length.per-cpu" value="200"/&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry key="core-threads.count" value="5"/&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry key="core-threads.per-cpu" value="2"/&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry key="max-threads.count" value="10"/&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry key="max-threads.per-cpu" value="3"/&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry key="keepalive.time" value="30"/&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry key="keepalive.time-unit" value="seconds"/&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;!-- <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;task-filter&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;clear-context-classloader/&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;clear-tls/&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/task-filter&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; --&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;/executor&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;executor name="LongRunningTasksThreadPool" type="queueless-thread-pool"&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry key="blocking" value="true" /&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;entry key="thread-factory" value="LongTasksThreadFactory"/&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;!-- <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;task-filter&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;clear-context-classloader/&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;clear-tls/&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/task-filter&gt;<br/>&#160;&#160;&#160;&#160;&#160; --&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;/executor&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;thread-factory name="ShortTasksThreadFactory"&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;thread-group name="ShortTasksThreadGroup"/&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;/thread-factory&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;thread-factory name="LongTasksThreadFactory"&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;thread-group name="LongTasksThreadGroup"/&gt;<br/>&#160;&#160;&#160;&#160;&#160; &lt;/thread-factory&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160; &lt;/threads&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160; &lt;system-properties&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;entry key="tmp.dir"&#160; value="/usr/tmp"/&gt;</p><p>&#160;&#160; &lt;/system-properties&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;!-- TODO, metadata for the various cotainers, transport, apps, etc --&gt;</p><p>&lt;/domain&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></pre></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/535088#535088">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>