Specifically, the EIS (database) Tier versus using the Web tier with POJO's and a light framework or the standard business logic tier using EJB's. Also, there may be other options besides these that I'm not aware of. Basically, it's design considerations for business logic with and without EJBs. Guidelines for using one alternative over the other.
This would be in the context of a Java EE application deployed on an app server.
My impression is that there should be some basic guidelines as to how this should be structured in an application and it couldn't be always one over the other, like use the database for performance reasons or always use EJB's, since I worked with applications that have used all three of these structures. I just had never thought about what design guidelines should I use in making the determination?
I'm thinking along lines of:
- If you have database tables with millions of rows in them, look at putting business logic in stored procedures and triggers.
- If you have simple business logic for a an application, look at using POJO's for the business logic.