From bottom to top, this sample application will consist of three layers: persistence, service, and presentation. It can be seen in the next figure. The persistence layer is responsible for storing objects in a database. Transactions guarantee consistency of the database and provide isolation between concurrent requests. The service layer represents the business logic of this application. It consists of the validation service, complex event processing (CEP) service, and loan approval service. Finally, the presentation layer uses these services to provide functionality to the users in a user friendly fashion.
Please note that with some minor configuration changes, the service layer and presentation layer may be deployed on different physical servers and communicate over the network. With some more configuration changes, it is even possible to have multiple service or presentation layer deployments. This won't be covered in this...