EJB container managed threading model
Any good source/links or concise explaina开发者_如何学JAVAtion about it?
Thanks a lot!
The container has a thread pool and a request queue. When a request comes in, it's added to the queue. A listener takes the request off the queue, checks a thread out of the thread pool, and gives it the request to process. When the process is complete, the thread goes back into the pool to await its next assignment.
When the thread pool is exhausted, requests back up in the queue until sufficient resources are available to process them.
精彩评论