I am trying to understand the difference between JPA Controller/Manager classes and EJBs. Eclipse lets me create Entity classes for database tables and Entity manager/controller classes which use the Entity classes. The classes for example:
TableName
TableNameManager
Then I also see one can generate/write EJBs which appear to be providing the same/similar functionality as the JPA controller classes. I see both JPA and EJB use
javax.persistence.EntityManager
I am not sure the answers address the JPA controller/manager classes. I would like to know what is the difference and if there is an advantage of using one over the other.