title: JBoss 7 EJB @Asynchronous thread-pool max limit "exceeded"
body: <p>I have some EJB with <code>@Asynchronous</code> method. </p>
  
  <p>I try to figure out what happens when all threads configured in pool are in processing and one more asynchronous call comes?</p>
  
  <p>I found some answer in <a href="https://stackoverflow.com/questions/27026458/ejb-3-1-asynchronous-method-and-thread-pool">this post</a>, but it is only for Websphere:</p>
  
  <p>I would like to know what happens on JBoss and if there is some option to queue threads like on Websphere.</p>
  
  <p>I configure thread-pool like this:</p>
  
  <pre><code>    &lt;subsystem xmlns="urn:jboss:domain:ejb3:1.2"&gt;
  
         &lt;async thread-pool-name="default"/&gt;
  
         &lt;thread-pools&gt;  
            &lt;thread-pool name="default"&gt;  
                &lt;max-threads count="10"/&gt;  
                &lt;keepalive-time time="100" unit="milliseconds"/&gt;  
            &lt;/thread-pool&gt;  
         &lt;/thread-pools&gt;  
  
         ...
      &lt;/subsystem&gt;
  </code></pre>
  
  <p>I tried to use <code>bounded-queue-thread-pool</code> insinde of <code>&lt;thread-pools&gt;</code> element, but it does not work.</p>
  
  <p>thank you for help</p>