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