The middle component of a typical web application is the business or service layer. This service layer is often the most ignored layer from a coding perspective. It is not uncommon to find this type of code scattered around in the UI layer or in the persistence layer. This is not the correct place because it leads to tightly coupled applications and code that can be hard to maintain over time. Fortunately, several frameworks exist that address these issues. Two of the most popular frameworks in this space are Spring and PicoContainer. ........
..... The business layer should be responsible for the following:
- Handling application business logic and business validation
- Managing transactions
- Allowing interfaces for interaction with other layers
- Managing dependencies between business level objects
- Adding flexibility between the presentation and the persistence layer so they do not directly communicate with each other
- Exposing a context to the business layer from the presentation layer to obtain business services
Managing implementations from the business logic to the persistence layer
Excerpt from "Wiring Your Web Application with Open Source Java" by Mark Eagle
[Note:This blog was migrated from my very old blog which was in the blogspirit.]
Software Programming,Open Source
Programming