users@glassfish.java.net

Re: Ejb container

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Mon, 14 Mar 2011 15:55:43 -0700

forums_at_java.net wrote:
> 1) " there might be less than 18 threads available to serve those
> requests..." - how is the number of threads contolled?

It depends on the type of the caller... where is the calling code located?
>
> 2)I added Thread.sleep to stateless bean bussiness method which i called,
> and now I see still 17 beans are created and only one bean is used to
> serve
> 30 calls. Why container returns the same bean for all calls if there
> are some
> "free" beans in pool?

Do you create parallel requests for the bean in question?

-marina
>
> Thank you
>
>
> --
>
> [Message sent by forum member 'tetyanac']
>
> View Post: http://forums.java.net/node/780199
>
>