File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.
I agree. Here's the link:
subject: Servlet Clustering
It's not a secret anymore!