When using the facade design pattern to structure an application's business EJB layer, why should we still use session beans for the actual business logic? Is there a specific reason for not just using plain Java classes (if container managed injection isn't required)? How is the performance of a plain Java class versus a session bean, wouldn't bypassing business session beans improve performance?
Just to sum up the two options:
- CLIENT -> FACADE -> SESSION BEAN
- CLIENT -> FACADE -> REGULAR JAVA CLASS
Why use 1 instead of 2?