版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、<p><b> 附錄一:文獻(xiàn)資料</b></p><p><b> 原文</b></p><p> J2EE WEB應(yīng)用架構(gòu)分析</p><p><b> 1、架構(gòu)概述</b></p><p> J2EE體系包括java server pages(JSP)
2、 ,java SERVLET, enterprise bean,WEB service等技術(shù)。這些技術(shù)的出現(xiàn)給電子商務(wù)時(shí)代的WEB應(yīng)用程序的開發(fā)提供了一個(gè)非常有競(jìng)爭力的選擇。怎樣把這些技術(shù)組合起來形成一個(gè)適應(yīng)項(xiàng)目需要的穩(wěn)定架構(gòu)是項(xiàng)目開發(fā)過程中一個(gè)非常重要的步驟。完成這個(gè)步驟可以形成一個(gè)主要里程碑基線。形成這個(gè)基線有很多好處:</p><p> 各種因數(shù)初步確定:為了形成架構(gòu)基線,架構(gòu)設(shè)計(jì)師要對(duì)平臺(tái)(體系)中的技
3、術(shù)進(jìn)行篩選,各種利弊的權(quán)衡。往往架構(gòu)設(shè)計(jì)師在這個(gè)過程中要閱讀大量的技術(shù)資料,聽取項(xiàng)目組成員的建議,考慮領(lǐng)域?qū)<业男枨?,考慮贊助商成本(包括開發(fā)成本和運(yùn)行維護(hù)成本)限額。一旦架構(gòu)設(shè)計(jì)經(jīng)過評(píng)審,這些因數(shù)初步地就有了在整個(gè)項(xiàng)目過程中的對(duì)項(xiàng)目起多大作用的定位。</p><p> 定向技術(shù)培訓(xùn):一旦架構(gòu)師設(shè)計(jì)的架構(gòu)得到了批準(zhǔn)形成了基線,項(xiàng)目開發(fā)和運(yùn)行所采用的技術(shù)基本確定下來了。眾多的項(xiàng)目經(jīng)理都會(huì)對(duì)預(yù)備項(xiàng)目組成員的技術(shù)功底
4、感到擔(dān)心;他們需要培訓(xùn)部門提供培訓(xùn),但就架構(gòu)師面對(duì)的技術(shù)海洋,項(xiàng)目經(jīng)理根本就提不出明確的技術(shù)培訓(xùn)需求。怎不能夠?qū)w系中所有技術(shù)都進(jìn)行培訓(xùn)吧!有了架構(gòu)里程碑基線,項(xiàng)目經(jīng)理能確定這個(gè)項(xiàng)目開發(fā)會(huì)采用什么技術(shù),這是提出培訓(xùn)需求應(yīng)該是最精確的。不過在實(shí)際項(xiàng)目開發(fā)中,技術(shù)培訓(xùn)可以在基線確定之前與架構(gòu)設(shè)計(jì)并發(fā)進(jìn)行。</p><p> 角色分工:有了一個(gè)好的架構(gòu)藍(lán)圖,我們就能準(zhǔn)確劃分工作。如網(wǎng)頁設(shè)計(jì),JSP 標(biāo)簽處理類設(shè)計(jì),S
5、ERVLET 設(shè)計(jì),session bean設(shè)計(jì),還有各種實(shí)現(xiàn)。這些任務(wù)在架構(gòu)藍(lán)圖上都可以清晰地標(biāo)出位置,使得項(xiàng)目組成員能很好地定位自己的任務(wù)。一個(gè)好的架構(gòu)藍(lán)圖同時(shí)也能規(guī)范化任務(wù),能很好地把任務(wù)劃分為幾類,在同一類中的任務(wù)的工作量和性質(zhì)相同或相似。這樣工作量估計(jì)起來有一個(gè)非常好的基礎(chǔ)。</p><p> 運(yùn)行維護(hù):前面說過各個(gè)任務(wù)在架構(gòu)圖上都有比較好的定位。任何人能借助它很快地熟悉整個(gè)項(xiàng)目的運(yùn)行情況,錯(cuò)誤出現(xiàn)時(shí)
6、能比較快速地定位錯(cuò)誤點(diǎn)。另外,有了清晰的架構(gòu)圖,項(xiàng)目版本管理也有很好的版本樹軀干。</p><p> 擴(kuò)展性:架構(gòu)猶如一顆參天大樹的軀干,只要軀干根系牢,樹干粗,長一些旁支,加一些樹葉輕而易舉無疑。同樣,有一個(gè)穩(wěn)定的經(jīng)得起考驗(yàn)的架構(gòu),增加一兩個(gè)業(yè)務(wù)組件是非常快速和容易的。</p><p> 大家都知道這些好處,一心想形成一個(gè)這樣的J2EE應(yīng)用程序架構(gòu)(就像在windows平臺(tái)中的MFC
7、)。在這個(gè)路程中經(jīng)歷了兩個(gè)大的階段:</p><p><b> 模型1</b></p><p> 模型1其實(shí)不是一個(gè)什么穩(wěn)定架構(gòu),甚至談不上形成了架構(gòu)。模型1的基礎(chǔ)是JSP文件。它從HTTP的請(qǐng)求中提取參數(shù),調(diào)用相應(yīng)的業(yè)務(wù)邏輯,處理HTTP會(huì)話,最后生成HTTP文檔。一系列這樣的JSP文件形成一個(gè)完整的模型1應(yīng)用,當(dāng)然可能會(huì)有其他輔助類或文件。早期的ASP 和 P
8、HP 技術(shù)就屬于這個(gè)情況。</p><p> 總的看來,這個(gè)模型的好處是簡單,但是它把業(yè)務(wù)邏輯和表現(xiàn)混在一塊,對(duì)大應(yīng)用來說,這個(gè)缺點(diǎn)是令人容忍不了的。</p><p><b> 模型2</b></p><p> 在經(jīng)過一番實(shí)踐,并廣泛借鑒和總結(jié)經(jīng)驗(yàn)教訓(xùn)之后,J2EE應(yīng)用程序終于迎來了MVC(模型-視圖-控制)模式。MVC模式并不是J2EE
9、行業(yè)人士標(biāo)新立異的,所以前面我談到廣發(fā)借鑒。MVC的核心就是做到三層甚至多層的松散耦合。這對(duì)基于組件的,所覆蓋的技術(shù)不斷膨脹的J2EE體系來說真是福音和救星。</p><p> 它在瀏覽器(本文對(duì)客戶代理都稱瀏覽器)和JSP或SERVLET之間插入一個(gè)控制組件。這個(gè)控制組件集中了處理瀏覽器發(fā)過來的HTTP請(qǐng)求的分發(fā)邏輯,也就是說,它會(huì)根據(jù)HTTP請(qǐng)求的URL,輸入?yún)?shù),和目前應(yīng)用的內(nèi)部狀態(tài),把請(qǐng)求分發(fā)給相應(yīng)的W
10、EB 層的JSP 或SERVLET。</p><p> 另外它也負(fù)責(zé)選擇下一個(gè)視圖(在J2EE中,JSP,SERVLET會(huì)生成回給瀏覽器的html從而形成視圖)。集中的控制組件也有利于安全驗(yàn)證,日志紀(jì)錄,有時(shí)也封裝請(qǐng)求數(shù)據(jù)給下面的WEB tier層。這一套邏輯的實(shí)現(xiàn)形成了一個(gè)像MFC的應(yīng)用框架。</p><p><b> 2、候選方案</b></p>
11、<p> 目前,實(shí)現(xiàn)模型2的框架也在不斷的涌現(xiàn),下面列出比較有名的框架。</p><p> 2.1、Apache Struts</p><p> Struts是一個(gè)免費(fèi)的開源的WEB層的應(yīng)用框架,apache軟件基金致力于struts的開發(fā)。Struts具是高可配置的性,和有一個(gè)不斷增長的特性列表。一個(gè)前端控制組件,一系列動(dòng)作類,動(dòng)作映射,處理XML的實(shí)用工具類,服務(wù)器端
12、java bean 的自動(dòng)填充,支持驗(yàn)證的WEB 表單,國際化支持,生成HTML,實(shí)現(xiàn)表現(xiàn)邏輯和模版組成了struts的靈魂。</p><p> 模型:模型以一個(gè)或幾個(gè)java bean的形式存在。這些bean分為三種:Form beans(表單Beans),它保存了HTTP post請(qǐng)求傳來的數(shù)據(jù),在Struts里,所有的Form beans都是 ActionFrom 類的子類。業(yè)務(wù)邏輯beans,專門用來處
13、理業(yè)務(wù)邏輯。系統(tǒng)狀態(tài)beans,它保存了跨越多個(gè)HTTP 請(qǐng)求的單個(gè)客戶的會(huì)話信息,還有系統(tǒng)狀態(tài)。</p><p> 視圖:控制組件續(xù)傳HTTP請(qǐng)求給實(shí)現(xiàn)了視圖的JSP文件。JSP能訪問beans 并生成結(jié)果文檔反饋到客戶。Struts提供JSP 標(biāo)簽庫: Html,Bean,Logic,Template等來達(dá)到這個(gè)目的,并有利于分開表現(xiàn)邏輯和程序邏輯。</p><p><b>
14、; 2.2、JATO</b></p><p> JATO應(yīng)用程序框架是iPlanet 應(yīng)用程序框架的舊名。它是一個(gè)成熟的、強(qiáng)大的,基于J2EE標(biāo)準(zhǔn)的面向于開發(fā)WEB應(yīng)用程序的應(yīng)用框架。結(jié)合了顯示字段、應(yīng)用程序事件、組件層次和以頁面為中心的開發(fā)方法、以及MVC和服務(wù)到工作者service-to-workers的設(shè)計(jì)模式等概念。</p><p> JATO可適用于中、大、超大
15、規(guī)模的WEB應(yīng)用。但是它也不是一個(gè)企業(yè)層的應(yīng)用框架,也就是說它不會(huì)直接提供創(chuàng)建EJB, WEB services等企業(yè)層組件的方法,但用它可以構(gòu)造出訪問企業(yè)層組件的客戶應(yīng)用。</p><p> 這個(gè)框架功能主要有三部分組成:iPlanet應(yīng)用框架核心;iPlanet應(yīng)用框架組件;iPlanet應(yīng)用框架擴(kuò)展。</p><p><b> 譯文</b></p>
16、;<p> Analysis of J2EE WEB application construction</p><p> 1、the outline of the construction</p><p> J2EE system includes many technologies such as java server pages (JSP), java SE
17、RVLET, enterprise bean, WEB service and so on. These technologies appeared have provided an extremely competitive choice to the development of WEB application of electronic commerce . How these technologies are combined
18、to form the stable construction which an adaptabl project needs is an importable step in the project development. Completing this step may form a main milestone baseline. It is a advantage to form thi</p><p>
19、; Many factors determine it initially.In order to form the construction baseline, the construction designer must choose the center technology in the platform and measure each kind of advantages. Often the construction d
20、esigner has to check the massive technical datas in this process, listen to the suggestion of members in the component project, consider the domain expert's demand and consider the sponsor’s cost quota (including dev
21、elopment cost and movement maintenance cost). Once the construction</p><p> Directional technology training: Once the construction of the construction designer is approved to form the baseline, the technolo
22、gy which the project development and the movement use has basically determined. Multitudinous project managers may worry about basic skills of the component members’ prepared in the project.They need to be trained in
23、the department providing training.But to the technical sea which the construction designer faces on, project manager cannot propose the explicit tech</p><p> Division of labor: Having a good construction
24、blueprint, we can accurately divide the work such as homepage design, JSP label processing class design, SERVLET design, session bean design and many kinds of realizations. These all duties may be located clearly on
25、the construction blueprint, enabling the project component member to locate own duty well. At the same time a good construction blueprint can also standardize the duty, divide well the duty into several kinds in the sam
26、e kind of whi</p><p> Movement maintenance: each duty has quite good localization in a composition. Anyone can is familiar with the movement in the entire project with the help of it quickly and locate fa
27、st where wrong is when the mistake appears. Moreover, having the clear frame composition, the project edition management also has good edition tree torso.</p><p> Extension: The construction likes the to
28、rso of a towering big tree.so long as torso root system jail, bough thick, the long some collateral branches, add some leaves to be easy without doubt. Similarly, having stable construction standing the test, it is extr
29、emely fast and easy to increase 12 service modules.</p><p> Everybody knows these advantage and wants to form a such J2EE application construction as it (like MFC in windows platform). It has experienced
30、two big stages in this process:</p><p><b> model 1</b></p><p> Actually model 1 is not stable construction, even far from the construction formed. The foundation of model 1 is
31、JSP document. It withdraws the parameter from the HTTP request, transfers the corresponding service logic, processes the HTTP conversation and finally produces the HTTP documents. A series of such JSP document forms a co
32、mplete model 1 application, certainly possibly having other assistances kind or the document. The earlier ASP and the PHP technology belongs to this situation.</p><p> To the summary, the advantage of this
33、model is simple, but it mixes the service logic with the performance in the same place. To the big application, this shortcoming is able to be tolerated.</p><p><b> model 2 </b></p><p
34、> Through practice, after summarying lesson, the J2EE application has finally welcomed the MVC (model - view pneumatic-control) pattern. The MVC pattern is not something new and different which the J2EE professioner
35、proposes.Therefore in the front I talked about profiting widely. The core of the MVC is to achieve three or even multi-layered loose couplings. To the J2EE system which has to based on the module and which covered the t
36、echnology inflates unceasingly,it really is the gospel and the lib</p><p> It inserts a control module between in the browser ( in this article all the customer proxys are called browser) and JSP or SERVLET
37、. This control module concentrates HTTP request distribution logic which is sent by the browser processed.In other words, it could input parameter according to HTTP request URL,with the present application internal cond
38、ition, giving the request to distribute the JSP or SERVLET of the corresponding WEB level.</p><p> Moreover, it also is responsible for choicing next view (in J2EE, JSP and SERVLET can produce html for bro
39、wser to form the view). The centralism control module is also advantageous to the safety certification, the diary record and sometimes also seals the request data to give the following WEB tier level. This set of logical
40、 realization forms one application frame like MFC.</p><p> 2、candidate plan</p><p> At present, the realization frames of the model 2 also emerge unceasingly. list some famous frames as follow
41、s.</p><p> 2.1、Apache Struts</p><p> Struts is a free and open application frame of the source WEB level.And the apache software fund devotes to the development of the struts. Struts has the n
42、ature which is highly disposed and has the characteristic tabulation which grows unceasingly. The front controlling module, a series of movements class, the movement mapping, the practical tool class processing XML, t
43、he automatic packing of the server carries java bean, the WEB form supporting confirmation , the international support, the p</p><p> the struts.</p><p> Model: Model exists as one or several
44、 java beans. These beans are divided into three kinds. Form beans (form Beans), it has preserved the data which the HTTP post requests to transmit. In Struts, all of the Form beans are the subclass of the ActionFrom cla
45、ss. Service logic beans is to be used to process the service logic specially. System mode beans preserve the conversation information of single customer who surmountes many HTTP requests and the system mode.</p>
46、<p> View: Continue to pass the HTTP by the Controlled module request realizes the JSP document of view. JSP can visit beans and produce the result documents to feed back to the customer. Struts provides the JSP
47、label storehouse to achieve this goal such as Html, Bean, Logic, Template and so on. And it is advantageous in separating the performance logic and procedure logic.</p><p><b> 2.2、JATO</b></
48、p><p> The JATO application frame is old name of the iPlanet application frame. It is one mature, formidable application frame which faces to develope WEB application based on the J2EE standard. It unified t
49、he demonstration field, the application event, the module level ,the methods of exploitation taking the page as the center, as well as MVC and designing pattern with service-to-workers concepts and so on.</p><
50、p> JATO is suitable for big, ultra large-scale WEB application. But it is not application frame of the enterprise level.In other words, it cannot provide directly the methods of Enterprise level module such as foun
51、ding EJB and WEB services. But it may struct the customer application which can visit the enterprise level module.</p><p> The function of this frame is mainly composed of three parts:the core of iPlanet ap
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 眾賞文庫僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 外文翻譯---j2ee web應(yīng)用架構(gòu)分析
- 計(jì)算機(jī)外文翻譯---appfuse 關(guān)于j2ee web應(yīng)用
- 計(jì)算機(jī)j2ee外文翻譯
- 計(jì)算機(jī)外文翻譯,文獻(xiàn)綜述(j2ee)幫助文獻(xiàn)綜述外文翻譯計(jì)算機(jī)j2ee文獻(xiàn)翻譯
- 計(jì)算機(jī)外文翻譯,文獻(xiàn)綜述(j2ee)
- 基于J2EE架構(gòu)的WEB開發(fā)及應(yīng)用.pdf
- j2ee應(yīng)用的運(yùn)行重構(gòu)-外文翻譯
- 計(jì)算機(jī)專業(yè)外文翻譯—基于java、j2ee的spring框架實(shí)現(xiàn)和分析大數(shù)據(jù)技術(shù)
- 基于J2EE的輕量級(jí)WEB架構(gòu)研究與應(yīng)用.pdf
- 基于J2EE多層架構(gòu)技術(shù)的Web應(yīng)用研究.pdf
- 基于J2EE輕量級(jí)架構(gòu)的WEB開發(fā)及應(yīng)用.pdf
- 基于j2ee的web?。螅澹颍觯椋悖澹髴?yīng)用
- j2ee文獻(xiàn)及外文翻譯
- 基于J2EE多層架構(gòu)技術(shù)的Web應(yīng)用與實(shí)現(xiàn).pdf
- J2EE Web層應(yīng)用框架研究.pdf
- [雙語翻譯]計(jì)算機(jī)外文翻譯--運(yùn)用spring mvc框架進(jìn)行快速的開源j2ee應(yīng)用程序開發(fā):案例研究
- 輕量級(jí)J2EE架構(gòu)的應(yīng)用.pdf
- 外文翻譯--j2ee體系結(jié)構(gòu)
- 中小企業(yè)J2EE Web開發(fā)架構(gòu)優(yōu)化及應(yīng)用.pdf
- 基于J2EE架構(gòu)的Web應(yīng)用系統(tǒng)測(cè)試方法研究與應(yīng)用.pdf
評(píng)論
0/150
提交評(píng)論