I think this topic has come up before. Seems like it's the magical question that no one has found a satisfactory answer too. IMHO, I believe that DAOs (or JDOs, etc...) could co-exist with Entity EJBs. The point that is continually missed is that Entity beans are more than just fat DAOs. Entity beans (like all EJBs) expose a number of services to the developer as a result of being part of the J2EE container, i.e. Security, Transaction Management, Pooling, etc... Now, if your specific problem domain doesn't call for these services to be provided by the persistence layer, then by all means, use straight DAOs. The important thing to remember is that Entity EJBs are not simply persistence components.
My 2 cents... Best Regards... Kevin E. Gaasch Enterprise Java Consultant Lucidus Consulting Services Sun Certified Java Programmer Canyon, Texas Work: (806) 324-4100 x4215 Cell: (806) 674-1523 -----Original Message----- From: A mailing list for Enterprise JavaBeans development [mailto:[EMAIL PROTECTED]]On Behalf Of Frank D. Greco Sent: Friday, December 07, 2001 9:52 AM To: [EMAIL PROTECTED] Subject: DAO vs Entity Beans? Ok... I read: http://java.sun.com/blueprints/patterns/j2ee_patterns/data_access_object/ So given that DAO will be standard in the future, why would anyone use Entity Beans at that point? Am I missing something? Will DAO make Entity Beans moot? Just curious what you all thought. Frank G. +======================================================================+ | Crossroads Technologies Inc, 55 Broad Street, 28th Fl, NYC, NY 10004 | | Enterprise Java Engineering | | Email: [EMAIL PROTECTED] Web: www.CrossroadsTech.com | | Pager: 800-495-6244 ePager: [EMAIL PROTECTED] | | Voice: 212-482-5280 x229 Fax: 212-482-5281 | +======================================================================+ =========================================================================== 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".
