posted 17 years ago
Use DAO when you want a persistence layer without EJBs. You write all the Java/JDBC/SQL code.
Use entity bean when you need EJBs, which means your app is distributed, transactional, high availability, high throughput, clustered, etc.
<a href="http://www.java-tips.org/java-tutorials/tutorials/" target="_blank" rel="nofollow">Java Tutorials</a> | <a href="http://www.planet-java.org" target="_blank" rel="nofollow">Java Weblog</a> | <a href="http://computer-engineering.science-tips.org" target="_blank" rel="nofollow">Computing Articles</a>