JBoss Community

Re: EJB3 Session Bean Pool

created by Carlo de Wolf in EJB3 - View the full discussion

For the benefit of other people new to this thread, you can only use ThreadlocalPool if the threads are backed by a pool. Spawning new / infinite threads will lead to new / infinite instances. (http://community.jboss.org/message/589434#589434)


The StrictMaxPool is designed to hold a maximum amount of instances. It does not care about concurrency or retention.

I think it should be possible to extend StrictMaxPool and set the strictMaxSize semaphore higher than the maxSize. e.g. strictMaxSize = 200, maxSize = 50. That should allow for 200 concurrent requests, while the pool will size down to 50 during low load.

Reply to this message by going to Community

Start a new discussion in EJB3 at Community