model view controller - Question about Java EE 6 architecture -


alt text

  1. from picture above, conclude java ee 6 architecture 3 tier architecture. dont understand client tier? isn't ui code suppose client tier. jsf handle ui of application, shouldn't jsf @ client tier?

  2. java ee 6 utilizes 3-tiers architecture, , jsf mvc model, can tell me correct or not? 3-tiers architecture linear model, client input cant go directly data tier. must go through middle tier. have jsf mvc model. know controller facesservlet, view page itself. what model?

a. cant database itself, since 3-tiers said must go through middle tier. model managed bean, served gate way database?

or

b. since jsf in middle tier, therefore model in fact database.

the client tier runs in client machine. in case of (java ee) web application, that's webbrowser. runs html/css/js , communicates server side http. ui code (the jsf code) covered web tier in picture. generates , sends html/css/js client side.

actually, whole jsf thing fits in web tier. jsf part in web tier can divided further in model (managed beans), view (jsp/facelets pages) , controller (facesservlet). business tier covers ejb's. there persistence entities (also called data transfer objects) can go through tiers database through business web , back.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -