版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、<p><b> 附 錄</b></p><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&
2、gt;<p> J2EE體系包括java server pages(JSP) ,java SERVLET, enterprise bean,WEB service等技術(shù)。這些技術(shù)的出現(xiàn)給電子商務(wù)時(shí)代的WEB應(yīng)用程序的開(kāi)發(fā)提供了一個(gè)非常有競(jìng)爭(zhēng)力的選擇。怎樣把這些技術(shù)組合起來(lái)形成一個(gè)適應(yīng)項(xiàng)目需要的穩(wěn)定架構(gòu)是項(xiàng)目開(kāi)發(fā)過(guò)程中一個(gè)非常重要的步驟。完成這個(gè)步驟可以形成一個(gè)主要里程碑基線。形成這個(gè)基線有很多好處:</p>
3、<p> 各種因數(shù)初步確定:為了形成架構(gòu)基線,架構(gòu)設(shè)計(jì)師要對(duì)平臺(tái)(體系)中的技術(shù)進(jìn)行篩選,各種利弊的權(quán)衡。往往架構(gòu)設(shè)計(jì)師在這個(gè)過(guò)程中要閱讀大量的技術(shù)資料,聽(tīng)取項(xiàng)目組成員的建議,考慮領(lǐng)域?qū)<业男枨?,考慮贊助商成本(包括開(kāi)發(fā)成本和運(yùn)行維護(hù)成本)限額。一旦架構(gòu)設(shè)計(jì)經(jīng)過(guò)評(píng)審,這些因數(shù)初步地就有了在整個(gè)項(xiàng)目過(guò)程中的對(duì)項(xiàng)目起多大作用的定位。</p><p> 定向技術(shù)培訓(xùn):一旦架構(gòu)師設(shè)計(jì)的架構(gòu)得到了批準(zhǔn)形成了
4、基線,項(xiàng)目開(kāi)發(fā)和運(yùn)行所采用的技術(shù)基本確定下來(lái)了。眾多的項(xiàng)目經(jīng)理都會(huì)對(duì)預(yù)備項(xiàng)目組成員的技術(shù)功底感到擔(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)目開(kāi)發(fā)會(huì)采用什么技術(shù),這是提出培訓(xùn)需求應(yīng)該是最精確的。不過(guò)在實(shí)際項(xiàng)目開(kāi)發(fā)中,技術(shù)培訓(xùn)可以在基線確定之前與架構(gòu)設(shè)計(jì)并發(fā)進(jìn)行。</p><p>
5、角色分工:有了一個(gè)好的架構(gòu)藍(lán)圖,我們就能準(zhǔn)確劃分工作。如網(wǎng)頁(yè)設(shè)計(jì),JSP 標(biāo)簽處理類設(shè)計(jì),SERVLET 設(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ì)起來(lái)有一個(gè)非常好的基礎(chǔ)。</p><p> 運(yùn)行維護(hù):前面說(shuō)
6、過(guò)各個(gè)任務(wù)在架構(gòu)圖上都有比較好的定位。任何人能借助它很快地熟悉整個(gè)項(xiàng)目的運(yùn)行情況,錯(cuò)誤出現(xiàn)時(shí)能比較快速地定位錯(cuò)誤點(diǎn)。另外,有了清晰的架構(gòu)圖,項(xiàng)目版本管理也有很好的版本樹(shù)軀干。</p><p> 擴(kuò)展性:架構(gòu)猶如一顆參天大樹(shù)的軀干,只要軀干根系牢,樹(shù)干粗,長(zhǎng)一些旁支,加一些樹(shù)葉輕而易舉無(wú)疑。同樣,有一個(gè)穩(wěn)定的經(jīng)得起考驗(yàn)的架構(gòu),增加一兩個(gè)業(yè)務(wù)組件是非??焖俸腿菀椎?。</p><p> 大家
7、都知道這些好處,一心想形成一個(gè)這樣的J2EE應(yīng)用程序架構(gòu)(就像在windows平臺(tái)中的MFC)。在這個(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文檔。一系列
8、這樣的JSP文件形成一個(gè)完整的模型1應(yīng)用,當(dāng)然可能會(huì)有其他輔助類或文件。早期的ASP 和 PHP 技術(shù)就屬于這個(gè)情況。</p><p> 總的看來(lái),這個(gè)模型的好處是簡(jiǎn)單,但是它把業(yè)務(wù)邏輯和表現(xiàn)混在一塊,對(duì)大應(yīng)用來(lái)說(shuō),這個(gè)缺點(diǎn)是令人容忍不了的。</p><p><b> 模型2</b></p><p> 在經(jīng)過(guò)一番實(shí)踐,并廣泛借鑒和總結(jié)經(jīng)驗(yàn)
9、教訓(xùn)之后,J2EE應(yīng)用程序終于迎來(lái)了MVC(模型-視圖-控制)模式。MVC模式并不是J2EE行業(yè)人士標(biāo)新立異的,所以前面我談到廣發(fā)借鑒。MVC的核心就是做到三層甚至多層的松散耦合。這對(duì)基于組件的,所覆蓋的技術(shù)不斷膨脹的J2EE體系來(lái)說(shuō)真是福音和救星。</p><p> 它在瀏覽器(本文對(duì)客戶代理都稱瀏覽器)和JSP或SERVLET之間插入一個(gè)控制組件。這個(gè)控制組件集中了處理瀏覽器發(fā)過(guò)來(lái)的HTTP請(qǐng)求的分發(fā)邏輯,
10、也就是說(shuō),它會(huì)根據(jù)HTTP請(qǐng)求的URL,輸入?yún)?shù),和目前應(yīng)用的內(nèi)部狀態(tài),把請(qǐng)求分發(fā)給相應(yīng)的WEB 層的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>&
11、lt;p><b> 2、候選方案</b></p><p> 目前,實(shí)現(xiàn)模型2的框架也在不斷的涌現(xiàn),下面列出比較有名的框架。</p><p> 2.1、Apache Struts</p><p> Struts是一個(gè)免費(fèi)的開(kāi)源的WEB層的應(yīng)用框架,apache軟件基金致力于struts的開(kāi)發(fā)。Struts具是高可配置的性,和有一個(gè)不
12、斷增長(zhǎng)的特性列表。一個(gè)前端控制組件,一系列動(dòng)作類,動(dòng)作映射,處理XML的實(shí)用工具類,服務(wù)器端java bean 的自動(dòng)填充,支持驗(yàn)證的WEB 表單,國(guó)際化支持,生成HTML,實(shí)現(xiàn)表現(xiàn)邏輯和模版組成了struts的靈魂。</p><p> 模型:模型以一個(gè)或幾個(gè)java bean的形式存在。這些bean分為三種:Form beans(表單Beans),它保存了HTTP post請(qǐng)求傳來(lái)的數(shù)據(jù),在Struts里,所
13、有的Form beans都是 ActionFrom 類的子類。業(yè)務(wù)邏輯beans,專門用來(lái)處理業(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能訪問(wèn)beans 并生成結(jié)果文檔反饋到客戶。Struts提供JSP 標(biāo)簽庫(kù): Html,Bean,Logic,Template等來(lái)達(dá)到這個(gè)目的
14、,并有利于分開(kāi)表現(xiàn)邏輯和程序邏輯。</p><p><b> 2.2、JATO</b></p><p> JATO應(yīng)用程序框架是iPlanet 應(yīng)用程序框架的舊名。它是一個(gè)成熟的、強(qiáng)大的,基于J2EE標(biāo)準(zhǔn)的面向于開(kāi)發(fā)WEB應(yīng)用程序的應(yīng)用框架。結(jié)合了顯示字段、應(yīng)用程序事件、組件層次和以頁(yè)面為中心的開(kāi)發(fā)方法、以及MVC和服務(wù)到工作者service-to-workers
15、的設(shè)計(jì)模式等概念。</p><p> JATO可適用于中、大、超大規(guī)模的WEB應(yīng)用。但是它也不是一個(gè)企業(yè)層的應(yīng)用框架,也就是說(shuō)它不會(huì)直接提供創(chuàng)建EJB, WEB services等企業(yè)層組件的方法,但用它可以構(gòu)造出訪問(wèn)企業(yè)層組件的客戶應(yīng)用。</p><p> 這個(gè)框架功能主要有三部分組成:iPlanet應(yīng)用框架核心;iPlanet應(yīng)用框架組件;iPlanet應(yīng)用框架擴(kuò)展。</p&
16、gt;<p><b> 譯文</b></p><p> Analysis of J2EE WEB application construction</p><p> 1、the outline of the construction</p><p> J2EE system includes many technolo
17、gies such as java server pages (JSP), java SERVLET, enterprise bean, WEB service and so on. These technologies appeared have provided an extremely competitive choice to the development of WEB application of electronic c
18、ommerce . How these technologies are combined 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
19、is a advantage to form thi</p><p> 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 eac
20、h kind of advantages. Often the construction designer 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 co
21、nsider the sponsor’s cost quota (including development cost and movement maintenance cost). Once the construction</p><p> Directional technology training: Once the construction of the construction designer
22、is approved to form the baseline, the technology which the project development and the movement use has basically determined. Multitudinous project managers may worry about basic skills of the component members’ prepar
23、ed in the project.They need to be trained in the department providing training.But to the technical sea which the construction designer faces on, project manager cannot propose the explicit tech</p><p> D
24、ivision of labor: Having a good construction 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.
25、 These all duties may be located clearly on 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, divi
26、de well the duty into several kinds in the same 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 proj
27、ect with the help of it quickly and locate fast 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&
28、gt; Extension: The construction likes the torso 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 stab
29、le construction standing the test, it is extremely 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
30、 MFC in windows platform). It has experienced 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 const
31、ruction formed. The foundation of model 1 is JSP document. It withdraws the parameter from the HTTP request, transfers the corresponding service logic, processes the HTTP conversation and finally produces the HTTP docum
32、ents. A series of such JSP document forms a complete model 1 application, certainly possibly having other assistances kind or the document. The earlier ASP and the PHP technology belongs to this situation.</p><
33、;p> To the summary, the advantage of this 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>
34、<b> model 2 </b></p><p> Through practice, after summarying lesson, the J2EE application has finally welcomed the MVC (model - view pneumatic-control) pattern. The MVC pattern is not something
35、new and different which the J2EE professioner 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
36、to based on the module and which covered the technology 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
37、 proxys are called browser) and JSP or SERVLET. 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
38、URL,with the present application internal condition, 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
39、J2EE, JSP and SERVLET can produce html for browser 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
40、 following WEB tier level. This set of logical 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
41、unceasingly. list some famous frames as follows.</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 t
42、he development of the struts. Struts has the nature which is highly disposed and has the characteristic tabulation which grows unceasingly. The front controlling module, a series of movements class, the movement mappi
43、ng, the practical tool class processing XML, the automatic packing of the server carries java bean, the WEB form supporting confirmation , the international support, the p</p><p> the struts.</p><
44、;p> Model: Model exists as one or several 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
45、 beans are the subclass of the ActionFrom class. 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 H
46、TTP requests and the system mode.</p><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
47、back to the customer. Struts provides the JSP 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>
48、;<p><b> 2.2、JATO</b></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 applic
49、ation based on the J2EE standard. It unified the 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-
50、to-workers concepts and so on.</p><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 m
51、ethods of Enterprise level module such as founding 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
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 眾賞文庫(kù)僅提供信息存儲(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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 計(jì)算機(jī)外文翻譯---j2ee web應(yīng)用架構(gòu)分析
- 計(jì)算機(jī)外文翻譯---appfuse 關(guān)于j2ee web應(yīng)用
- 基于J2EE架構(gòu)的WEB開(kāi)發(fā)及應(yīng)用.pdf
- j2ee應(yīng)用的運(yùn)行重構(gòu)-外文翻譯
- 基于J2EE的輕量級(jí)WEB架構(gòu)研究與應(yīng)用.pdf
- 基于J2EE多層架構(gòu)技術(shù)的Web應(yīng)用研究.pdf
- 基于J2EE輕量級(jí)架構(gòu)的WEB開(kāi)發(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í)J2EE架構(gòu)的應(yīng)用.pdf
- 外文翻譯--j2ee體系結(jié)構(gòu)
- 計(jì)算機(jī)j2ee外文翻譯
- 中小企業(yè)J2EE Web開(kāi)發(fā)架構(gòu)優(yōu)化及應(yīng)用.pdf
- 基于J2EE架構(gòu)的Web應(yīng)用系統(tǒng)測(cè)試方法研究與應(yīng)用.pdf
- 基于Ajax和J2EE的Web應(yīng)用架構(gòu)研究與設(shè)計(jì).pdf
- 基于j2ee輕量級(jí)框架的敏捷型web架構(gòu)研究及應(yīng)用
- 基于J2EE輕量級(jí)框架的安全Web架構(gòu)研究與應(yīng)用.pdf
- J2EE輕量級(jí)框架構(gòu)建Web應(yīng)用的研究和實(shí)現(xiàn).pdf
評(píng)論
0/150
提交評(píng)論