Business Layer for Web Applicatin projects
We generated a web project using Spring Roo. It's pretty awesome since a lot of work is done automatically. I now was wondering, if it's possible to force Spring Roo to use a business layer?
Right now the Spring Controllers access directly the domain models (Data Layer). We would like to use a layer in between to handle the business logic, since we don't want to do it in the web controllers. The reason for that is that we plan to offer a web service in the near future. So it would make sense that both the web application and the web service access the service components. Additionally we don't have to duplicate logic and security constraints.