I am starting a project to learn spring and MVC I am using visual studio 2012 and c# to make a web project.
My hopes is to have this discussion help guide me and others into using these items with the best practices in mind and maybe even get people to offer ideas and post links to where I can get started on all this.
Here is the general concept I am going to start with, and then everyone is welcome to help correct or refine the architecture. Thanks!!!
Layers of Project =
Model Layer
Business Objects (BO) = these will map logically to database information to create usable models for the project.
Service Layer
Data Access Objects (DAO) = these will be to the classes used to make the ADO stored proc calls to the database.
Service Objects (SO) = this will be the business rules and validation objects that pass data between the DAO and the Controller
View Layer
Controller Objects = these are there to gather data from the views and pass data to the views from the SO
Views = these are the UI pages and controls that make up the web site.
* * * * *
So here is where I am stuck...
= The Service Layer....
I am trying to make my Controllers able to get a BO from the SO and then manipulate that throughout the life of the page. But with each ajax call to the controller method, the BO that is passed in is null.
So where is my architecture breaking down?
What do I need to make sure I have in place (codewise) that would allow spring to keep my BO alive throughout the page ajax postbacks?
Thanks Again!