Skip to main content

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:

  1. tx.begin
  2. EntityManager interaction
  3. tx.commit
  4. consistent error handling +  tx.rollback

The creation and management of an EntityManager is not even included. The code will look like this...

Community: Java Enterprise