Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This is done with the <a href="http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html" rel="nofollow">Tomcat Executor</a>. You can read the details in <a href="https://community.jboss.org/wiki/ThreadPoolConfiguration" rel="nofollow">Thread Pool Configuration in AS 6.x</a>. </p> <p>A standalone descriptor may be written, whose name is, or ends with, "jboss-threads.xml". The format of such a descriptor will look like this:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;threads xmlns="urn:jboss:threads:2.0"&gt; &lt;thread-factory name="MyThreadFactory" thread-name-pattern="My Thread %t"&gt; &lt;thread-group name="MyThreadGroup"/&gt; &lt;/thread-factory&gt; &lt;!-- This is the Executor instance --&gt; &lt;thread-factory-executor name="MyExecutor"&gt; &lt;thread-factory name="MyThreadFactory"/&gt; &lt;max-threads count="100" per-cpu="100"/&gt; &lt;/thread-factory-executor&gt; &lt;/threads&gt; </code></pre> <hr> <p>ALTERNATIVELY: You can include it in a Microcontainer Deployment.</p> <p>Due to the way that the Microcontainer processes XML deployments, it is possible to include your threads descriptor in the midst of a regular POJO deployment, like this:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;deployment xmlns="urn:jboss:bean-deployer:2.0"&gt; &lt;!-- JBossMC elements here --&gt; &lt;threads xmlns="urn:jboss:threads:2.0"&gt; &lt;thread-factory name="MyThreadFactory" thread-name-pattern="My Thread %t"&gt; &lt;thread-group name="MyThreadGroup"/&gt; &lt;/thread-factory&gt; &lt;!-- This is the Executor instance --&gt; &lt;thread-factory-executor name="MyExecutor"&gt; &lt;thread-factory name="MyThreadFactory"/&gt; &lt;max-threads count="100" per-cpu="100"/&gt; &lt;/thread-factory-executor&gt; &lt;/threads&gt; &lt;/deployment&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload