Hi, 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. Rgds Muthu
posted 12 years ago
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.