jsr345-experts@ejb-spec.java.net

[jsr345-experts] Re: _at_MaxConcurrency / _at_MaxPoolSize annotation standardization

From: Reza Rahman <reza_rahman_at_lycos.com>
Date: Sun, 15 Apr 2012 15:18:17 -0400

+1. We actually have something like this is Resin called @PoolSize.

On 4/15/2012 2:57 PM, Adam Bien wrote:
> Hi Experts,
>
> I would re-activate my proposal of concurrency throttling of EJBs: https://java.net/jira/browse/EJB_SPEC-9
>
> There should be a way to throttle the ThreadPool responsible for the execution of @Asynchronous methods.
>
> I would like to propose @MaxConcurrency annotation to set the maximum amount of parallel threads executing an @Asynchronous method.
>
> In addition I would also like to standardize the @MaxPoolSize annotation. With this annotation even synchronous @Stateless session beans could be throttled.
>
> In case all instances / threads are busy, I would expect an immediate exception on the client side.
>
> This is one of the most popular questions according EJB 3.1 in workshops...
>
> any thoughts?
>
> adam
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.1913 / Virus Database: 2411/4938 - Release Date: 04/15/12
>
>
>