How to make ejb more effective?
843829Dec 17 2002 — edited Dec 17 2002Recently I am involve in develop an web application using ejb (with oracle db & JBoss as the container) but I found the page loading relatively slow.
I uses entity bean to connect to db, session bean to call the entity bean (for the methods) and use case/business logic object to access the session bean, then servlet to dispatch neccessary task to the business logic:
JSP -> servlet -> use case -> EJB (session) -> EJB (Entity) -> Oracle
I think the problem laid on the Entity -> Oracle. The way I implement is every entity bean will "relate" to one table in the database. But when I wish to get data from more than one table, the performance will get slow.
Anybody facing the same problem? Please kindly share your experience with me! TQ!