What is instance pooling ?

Showing Answers 1 - 2 of 2 Answers

Kumarakuru

  • Feb 10th, 2006
 

It is one of the service provided by EJB Container. It is pool of instances, which is ready to use. Instance pooling reduces the number of component instances, and therefore resources, needed to service client requests. In addition, it is less expensive to reuse pooled instances than to frequently create and destroy instances. Since clients never access beans directly there?s no real reason to keep a separate copy of each bean for each client.

  Was this answer useful?  Yes

To implement single thread model container use instance pooling in this approach several instances of same servlet are stored in a pool and the instances are allocated to the incoming client requests, once the purpose is served the instances are brought back to the pool. This ensures that a seperate instance of the servlet is allocated to each thread.  

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions