Loading
SessionBean pool

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  What is SessionBean pool ?


Ans)

Stateless session beans do not maintain any State between two client calls, each client call is to be considered as a new one. To avoid the Bean creation and start up overhead, EJB container creates a Pool of stateless SessionBeans which are in ready to serve state, this could be helpful in several ways.

  • One, by having one bean per instance, you're guaranteed to be threads safe (Servlets, for example, are not thread safe)
  • Two, you reduce any potential startup time that a bean might have.
  • Three, you can use bean pool as a means to throttle traffic. If you only have 10 Beans in a pool, you're only going to get at most 10 requests working simultaneously, the rest will be queued up.



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

SessionBean pool


SessionBean pool

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free