I am developing a database-based web application in Java EE and I am wondering about the benefits of using EJbs.
If I understand correctly, it is better to use EJB for all kinds of business logic or database transactions.
I use Hibernate as my JPA, and here is my question:
What are the benefits of using the introduced EJB as a DAO instead of the usual Java class as a DAO that is being called from my managed Bean? And what is the difference?
I am new to Java EE, so this may be a newbie.
source
share