Is it necessary to create instance of the bean for each and every request?

Showing Answers 1 - 6 of 6 Answers

rogesh

  • Jan 19th, 2006
 

i think 238 instances will created for one bean

  Was this answer useful?  Yes

vinaykurudi

  • Aug 13th, 2008
 

No, why because beans are maintaining one bean pool. If any request comes to that bean it will first see in that pool if any instance is free, then that instance will be thrown to the request. If no instace is free then the bean creates new instance. But each bean pool will have some size limit. If it reaches, the request will not get any instance so the request waits for instance.

  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