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