Subject: Session - > DAO - > CMP 2004-06-09 - By Koala
Back Hi,
I would like to know if it makes sense have DAO in front of an entity bean CMP. For example:
Client --> Session Facade --> DAO --> EntityBean
Probably this scheme could have some advantages:
1) the back end (DB or XML file) is abstracted. (I can abstract an XML file behind a CMP bean?) 2) I can move my application written in DAO quicly in EJB without changing client code.
and so on.
But, if I am writing a new application, does it make sense use this schema? If so, what are the advantages? Thanks for your help in advance.
PS
if you have links talking about this use of DAO please let me know. (Do not send me mail of sites talking about general use of DAO).
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|