MVC architecture in a J2EE application

You need a solution that lets you develop loosely-coupled applications. The Model-View-Controller (MVC) architecture is the suggested solution. MVC has been used very effectively in GUI-type applications. By applying the MVC architecture to a J2EE application, you can separate the data access logic from the data presentation logic. You can also build a flexible and easily extensible controller that controls the whole flow of the application. The figure below depicts the MVC architecture.

MVC Architecture

The MVC architecture can be mapped to multi-tiered enterprise J2EE applications as follows:

  • All enterprise data and the business logic to process the data can be represented in the MODEL.
  • The VIEW can access the data through the model and decide on how to present them to the client. The VIEW must ensure that the presentation changes as and when the MODEL changes.
  • The CONTROLLER can interact with the view and convert the client actions into actions that are understood and performed by the MODEL. The CONTROLLER also decides on the next view to be presented depending on the last client action and results of the corresponding MODEL action(s).

from Design Patterns for Building Flexible and Maintainable J2EE Applications

'Software' 카테고리의 다른 글

NMS 제품들  (0) 2007.01.04
Unix Error 코드 설명  (0) 2006.11.24
ACE - Object Oriented(OO) Framework  (0) 2006.09.14
CodeHighright에 Java 코드를 넣어보니..  (1) 2006.08.31
CVS/Subversion Resources  (1) 2006.08.31

Posted by BlogZin