Equation to Consider: (JSF + JPA) - EJB = BLOAT
Java Champion Adam Bien presents a software engineering equation for us to consider: (JSF + JPA) - EJB = BLOAT:
Without an EJB you will need for every EntityManager interaction at least 4 lines of code:
- EntityManager interaction
- consistent error handling + tx.rollback
The creation and management of an
EntityManageris not even included. The code will look like this...