concept spring in category iBatis

appears as: Spring
iBatis in Action

This is an excerpt from Manning's book iBatis in Action.

Having eliminated the presentation and persistence layers, we are left with the business logic layer, which you’ve probably guessed is the right choice. Well, as we’ve said before, depending on the application requirements, any one of these layers could be the right choice. However, experience has shown that the business logic layer often makes a good choice for demarcating transactions. This is a common and familiar approach to both EJB developers and Spring framework developers alike. Stateless session beans are a business logic component, and often transaction requirements are declared as part of their configuration. In a similar way, Spring allows transactions to be declared for almost any method, and often the business logic components are chosen over the DAOs, simply because it’s common for a single business operation to require more than one DAO.

In addition to being able to manage that separation, Spring can be used to manage your connections and transactions, just like the iBATIS DAO layer does. The big advantage of Spring is that it is not only for DAO classes but for all segments of your application.