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 EJB Certification (SCBCD/OCPJBCD) and the fly likes Stateless Bean Optimum PoolSize and Caching of StatelessBean 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 » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Stateless Bean Optimum PoolSize and Caching of StatelessBean" Watch "Stateless Bean Optimum PoolSize and Caching of StatelessBean" New topic
Author

Stateless Bean Optimum PoolSize and Caching of StatelessBean

Smyle java
Greenhorn

Joined: Nov 18, 2004
Posts: 1
Hi all,//Help needed
I have two questions

1) I have a stateless session EJB (say MyEJB)deployed in weblogic 7 (on a linux box with weblogic allocated memory as 256 mb)with maximum pool size as 100.Now my stateless session EJB calls sequentially two classes namely A and B. Class A access a HTTPServlet and retrieves a message and gives that message to another Stateless Session EJB(with pool size 100) through class C. Now I tried to increase the EJB pool size from 100 to 500 in both the beans in order to increase the performance. To my surprise the EJBBean Instance in use is not increasing beyond 80 even though when I try to pump in Heavy loads of data (i.e when I try to access simultaneously 1000 instances of "MyEJB" from a client program).Why is the EJBPool size is not growing Beyond a particular limit say 80 in this case ?.
2)Is it advisable to cache a stateless session beans object ?If i cache will it affect the Scalability of the stateless session EJB?

Thanks for reading my question patiently and trying to solve it.
regards
Smyle
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Stateless Bean Optimum PoolSize and Caching of StatelessBean
 
Similar Threads
clustering
Stateless session beans and Transactions
Local Entity Bean not bound in EJB 2.1 on JBoss 4.2.3 server
getting ClassCastException while running weblogic.appc in the ANT build script
please answer this 128 questions for WLS. Urgently!