This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Servlet Clustering Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Clustering" Watch "Servlet Clustering" New topic

Servlet Clustering

Pearlo Muthukumaran
Ranch Hand

Joined: Sep 17, 2002
Posts: 79
In case of using Simple Javabeans encapsulating business logic, how the application server provides mechanisms of scalability.
For example, if one servlet instance makes use of 4 different simple javabeans(not EJBs), how can we tune the servlet container to handle scalability.
From some sources, I understand the tuning of thread pool of servlet container coud help. But does that influence the simple Javabean instances?
If it happens to be EJBs then tuning the Bean pool size can help. But what if we use simple javabeans instead of EJBs?
I am not anti-EJB but at certain circumstances simple-javabeans could be sufficient for a task.
Vinod John
Ranch Hand

Joined: Jun 23, 2003
Posts: 162
If I understand your question correct, my answer will be to make to code the java bean to be state less and pool the instance. The client using it has to retrive the bean from the pool, use it and return it back to the pool.
This is one of the service the application server provides automatically if you create a EJB.
It is sorta covered in the JavaRanch Style Guide.
subject: Servlet Clustering
Similar Threads
Servlet Container ...
Fast Lane reader pattern
JDBC driver confusion
java bean subsystem?