What is Multitiered Application? 出自sun對(duì)寵物商店例子的綜述文檔?
Partitioning a design into tiers allows designers to choose the appropriate technology for a given situation. The Java Pet Store demo, illustrates how its design is divided into multiple tiers.
使用分層的方式來(lái)進(jìn)行設(shè)計(jì),可以使設(shè)計(jì)者針對(duì)具體的情況使用合適 的技術(shù)。這個(gè)Java 寵物商店的例子展示了如何把一個(gè)設(shè)計(jì)分成多層結(jié)構(gòu)。
The Client tier is often the only part of the application the user sees. The Java Pet Store demo Client tier consists of a browser displaying web pages generated from JSP pages in the Web tier. An administrator interface uses a spreadsheet client, such as StarOffice software, to communicate with the Web Tier XML messages. The Client tier communicates with other tiers through defined interfaces. 客戶層通常是用戶唯一可以看到的應(yīng)用程序的部分。這個(gè)寵物商店例子 的客戶層是一個(gè)瀏覽器,它負(fù)責(zé)顯示W(wǎng)eb層中JSP頁(yè)產(chǎn)生的web頁(yè)面。一個(gè) 管理員接口可以使用一個(gè)spreadsheet客戶端(例如StarOffice軟件)來(lái) 和Web層交換XML消息。客戶層通過(guò)定義好的接口和其他層交互。
The Web tier performs web-related processing, such as serving HTML, instantiating web page templates, and formatting JSP pages for display. Some objects within the Web tier act as proxies to components in the Enterprise JavaBeans components tier. Web層負(fù)責(zé)Web相關(guān)的處理,比如提供HTML服務(wù),產(chǎn)生web頁(yè)面的模板的實(shí)作, 格式化JSP頁(yè)面來(lái)顯示。Web層中有一些物件可以作為EJB組件層中組件的 代理。
The Enterprise JavaBeans components tier is responsible for any processing involving Enterprise JavaBeans components. Enterprise JavaBeans components contain the business logic of the Java Pet Store demo, such as processing orders. EJB components also represent the model objects of the Java Pet Store demo, including Account and placed Orders. EJB組件層負(fù)責(zé)任何與EJB組件相關(guān)的處理。EJB組件中包含這個(gè)Java寵物商店 的商業(yè)邏輯,比如處理訂單。EJB組件也含有這個(gè)Java寵物商店的物件模型, 包括賬目和處理過(guò)的訂單。
Stand-alone clients and web applications in the Web tier can use Enterprise JavaBeans components hosted by the Enterprise JavaBeans components tier. The Java Pet Store demo demonstrates the proper use of Enterprise JavaBeans components. 單機(jī)版客戶端和網(wǎng)絡(luò)層中的web應(yīng)用都可以使用EJB組件層中的EJB組件。這個(gè) Java寵物商店的例子展示了如何恰當(dāng)?shù)厥褂肊JB組件。
The Enterprise Information System (EIS) tier provides a layer of software that maps existing data and application resources into the design of a J2EE application in an implementation-neutral way. The EIS tier can also access applications of other organizations or businesses, providing seamless business-to-business integration. 企業(yè)信息系統(tǒng)(EIS)層提供了一層軟件,以一種與實(shí)現(xiàn)無(wú)關(guān)的方式把已存在 的數(shù)據(jù)和應(yīng)用資源一起映射到一個(gè)J2EE應(yīng)用程序的設(shè)計(jì)之中。EIS層通過(guò)B2B的 無(wú)縫集成使得其它的組織或商業(yè)機(jī)構(gòu)也可以對(duì)其進(jìn)行使用。
?
|