sof
sof

Reputation: 9649

EJB container managed threading model

Any good source/links or concise explaination about it?

Thanks a lot!

Upvotes: 1

Views: 395

Answers (1)

duffymo
duffymo

Reputation: 308763

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.

Upvotes: 4

Related Questions