I think the key to your question is that you are solely looking at the two approaches from a performance perspective. If you only focus on the database you could argue that you should just have a client tier with a bunch of store procedures. What could be faster than this. Some people argue that for web applications like portals that you basically just need a web server hook up to the database (AOLServer). And as some have pointed out, what is initially faster may not be so as your load scales, since you can in theory can some caching benefits from entity beans. Let's face it, as soon as you choose Java you are saying performance is not your main concern or that it's not the bottleneck. So there's nothing to be confused about. Many approaches to a problem. Depends on your specific needs.
_________________________________________ Tinou Bao BAO Systems Chairman of the Board and Chief Software Architect www.baosys.com ----- Original Message ----- From: "EJB G" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 30, 2001 5:14 AM Subject: [EJB-INT] Question On Architecture > What's Difference is following two approach > for server-side components. > > Approach 1 : > Using Coarsed Grained Session Beans to perform > business logic interacting with database directly. > Approach 2. > Using Session Beans to interact with entity beans > which in turn interact with database. > > As far as i know first approach gives better > performance than second one.Then why one should > go for Entity Beans. > We are bit confused whisc approach to follow. > > Thanks in Advance. > > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. > http://geocities.yahoo.com/ps/info1 > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff EJB-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". > > =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
