hi, I'm using BEA Weblogic8.1, I'm a little bit confused about the optimal process of building
J2EE(EJB) application from UML use cases and interaction diagrams.
Currently, the way we work is that, first business analyst gather requirements, and draw use cases or activity diagrams for developers. Then, developers need to design the class diagram, interaction diagram, and code EJBs.
So, usually I'd create a Stateless Session Bean for each use case, as a controller. The Controller Stateless Session Bean would interact with CMP Entity Beans or DAOs, and each method in controller stateless session bean represent a step in use case scenarios, so related steps in a use case is grouped into one stateless session bean.
I doubt this kind of design does not always provide optimal performance. if two heavily used methods are within one SLSB, it'd likely cause very high timeout ratio for the SLSB. I've heard that in BEA Weblogic, each SLSB can work with at most 13 threads, so at most 13 instances of SLSB. when too many users simultaneously request those two methods, the 13 instances would be in use all the time, other requests need to wait, this SLSB might experience very high timeout, and transanction rollback ratio.
so, how to deal with this situation in SLSB design? just seperate these heavily used methods in different SLSBs?
any help appreicated!