[jboss-user] [EJB3] - Re: EJB3 Session Bean Pool
Carlo de Wolf
do-not-reply at jboss.com
Tue Apr 5 04:50:26 EDT 2011
Carlo de Wolf [http://community.jboss.org/people/wolfc] created the discussion
"Re: EJB3 Session Bean Pool"
To view the discussion, visit: http://community.jboss.org/message/597769#597769
--------------------------------------------------------------
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 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
[http://community.jboss.org/message/597769#597769]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110405/eb81b068/attachment.html
More information about the jboss-user
mailing list