Friday, 13 April 2012

MVC Architecture.

In MVC architecture based web-application devolopment multiple layers will be involved like 
  • View layer,
  • Model layer,
  • Controller layer.

M(Model) Contains
  • Business Logic
  • Persistence Logic
  • Java Bean/EJB
  • Spring with Hibernate simply named as (Accounts Officer)
V(View) Contains
  • Presentation Logic
  • JSPs /Free marker simply named as (Beauticians)
C(Controller) Contains
  • Integration Logic
  • Servlet simply named as (Traffic Police).
Java application use JDBC or ORM (Object Relational Mapping)technologies like Hibernate to interact with database softwares.
  • Java applications use JCA(Java Connector Architecture) to interact with ERP (Enterprise Resource Plan) & CRM (Customer Resource Management).
  • Java Application use JNI ( Java Native Interface) to communicate with legacy system.
  • Integration Logic is the connectivity logic b/w model layer components.
  • Integration Logic controls and monitors all the operations that are taking place in MVC architecture based web-application.
  • Integration Logic is responsible to trap and take the request to send request to Model Layer, to get business logic execution request from model layer to pass request to view layer components
with respect to the above diagram:
  1. 1.Browser gives request to web application.
  2. 2.The controller Servlet traps and taken the request.
  3. 3.Controller servlet uses integration logic and passes the request to appropriate model layer to business component.
  4. 4.& 5. Model Layer business logic executes if necessary business components interacts with one of the back-end softwares for using persistence Logic.
  5. 6.The business Logic execution logic comes to controller servlet.
  6. 7. Controller servlet passes the new request to view always components JSP.
  7. 8. Presentation Logic of JSP formats the result and sends formatted result to browser as response.

1 comment:

Related Posts Plugin for WordPress, Blogger...