Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / July 2003

Tip: Looking for answers? Try searching our database.

Business/Data access tier - need an advise

Thread view: 
Igor - 14 Jul 2003 16:05 GMT
Hello all,

We are about to start a project for an Internet medium to high load website.
For the presentation tier our choice is Struts.

What would you recommend for the business/da tier implementation:

1. EJB - Session bean as a facade and CMP 2.0 beans
2. Session bean as a facade + object/relational persistence framework (like
Hibernate) for DA.
3. Session bean as a facade + JDBC for DA.
4. Pure JDBC.

Any help well be appreciated.

/Igor
Trebor - 23 Jul 2003 02:10 GMT
I would advice

use CMP 2.0 Entiy Beans whenever possible
- smart optimized container
- development independent from deployment

with 3 exceptions:
prefer BMP + O/R mapper (toplink, db-ojb, hibernate to name a few ones...)
when
- datasource not supported by the container
- schema two complex for the persistence manager.

consider stateless session beans + straight JDBC
- when non relational datasource
- simple transactions
- mainly reading

statefull session bean
- when important result set to cursor

Of course avoid mix of all to minimize number of mappings

Robert.

> Hello all,
>
[quoted text clipped - 12 lines]
>
> /Igor


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.