Summary

In this chapter we've learned how to write a basic web application. The application brought together some of the services we've defined in the previous chapters.

The application had layered architecture. All were configured with the Spring framework (data sources, repositories, transactions, knowledge bases, services, view controllers, and others). Spring makes it easy to change the configuration without recompiling the code.

We've learned how to integrate transactions with our services. For example, all new customers are validated, persisted, and all this happens within a transaction. The complex event processing service is notified about all important events within the application.

The loan approval process showed how to deal with a long-running rule sessions. Sessions had to persist during the user "think time", otherwise they will consume resources that could have been used much better. We've defined a session template that abstracts away the session setup logic, as well as the cleanup logic, so this way we won't forget to perform it.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.65.65