[jboss-user] [EJB3] - Re: MDB Pool size configuration

Carlo de Wolf do-not-reply at jboss.com
Tue Oct 11 16:07:28 EDT 2011


Carlo de Wolf [http://community.jboss.org/people/wolfc] created the discussion

"Re: MDB Pool size configuration"

To view the discussion, visit: http://community.jboss.org/message/631240#631240

--------------------------------------------------------------
The thread local pool is designed to be used by a pool of threads. Because the pool of threads already limits the amount of instances that can be created the thread local pool doesn't need any multi-threading synchronizations. So the effective throughput is the highest possible.

The strict max pool will make certain only a limited set of instances are created.

Most call originate from a pool of threads (remoting pool, servlet thread pool), so using the thread local pool is best.
However for example the old EJB timer service creates a new thread per callback, so then you would need to use the strict max pool.

In this case the thread local pool should suffice.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/631240#631240]

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/20111011/c8d6f0ed/attachment.html 


More information about the jboss-user mailing list