This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
In a simple web application (non EJB) , do we really need a service layer?
We will have the presentation layer which will be the JSP,HTML etc. and then the controller layer which will be a servlet which acts as
interceptor for all the HTTP requests and then the model layer where we will have the business logic coding.
Then finally we have the Integration layer where we have the DAO codings using which we connect to database, run queries and get
back the results.
Given the above scenario, do we really need a service layer??
If NOT, can you please let me know when a J2EE application will need a service layer? Like for eg. if we are using EJB's etc..
Also i am just referring to a simple web application using JSP,Servlets,POJO's,Java etc. Not any struts application etc..