Model view controller – questions about Java EE 6 architecture

>From the above figure, I can conclude that Java EE 6 architecture is a 3-tier architecture What I don't understand is what is the customer layer? Not UI code, assuming client layer JSF handles the UI of the application. Should JSF not be in the client layer?

One It cannot be the database itself, because layer 3 means that everything must pass through the middle layer Is model a managed bean and a portal to the database?

or

Because JSF is already in the middle tier, the model is actually a database

Solution

The client layer is all that runs on the client computer For (Java EE) web applications, it is usually WebBrowser It only runs HTML / CSS / JS. It communicates with the server through HTTP The UI code (JSF code) is covered by the web layer in the picture It generates and sends HTML / CSS / JS to the client

In fact, the whole JSF thing fits perfectly into the web layer The JSF part of the web layer itself can be further divided in the model (managed bean), view (JSP / facelets page) and controller (facesservlet) The business layer covers EJB Then there are persistent entities (also known as data transfer objects), which can go through business to the web and return from all layers of the database

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>