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