performance of servlets over EJB
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sudha_parimala
Posted On:   Friday, April 20, 2001 02:35 AM

hello,
we would like to have ur suggetion for a problem we have.

right now we r using EJB for business logic and servlets as a client to EJB. we have limited number of clients (say 1000)

In this case we have an issue over performance so we would like to take ur suggetion in having business logic in EJB or in Servlet here by avoiding EJB not at the cost of performance.

Re: performance of servlets over EJB

Posted By:   anup_katariya  
Posted On:   Monday, April 23, 2001 02:14 AM

Hi,
As far as architecture is concerned
business logic should be in the
ejbs.
But ejbs are bottlenecks. Performance wise they are very slow , if u compare them with JDBC.
U can do one thing.
Write jdbc for getting data from database and for updation use ejbs so that u don't have to care for transaction managements and some other non-business stuff

Re: performance of servlets over EJB

Posted By:   AlessandroA_Garbagnati  
Posted On:   Friday, April 20, 2001 08:52 AM

Hi,

Personally I think that the business logic should stay as close as possible to the EJB Container. Normally I divide it part in the session beans and part in helpers method that are executed by the servlet container. At the same time i normally try to put no business logic in the servlets (or no java code in jsps).

What Application server and Database are you using?
About | Sitemap | Contact