TAILIEUCHUNG - Designing Enterprise Applicationswith the J2EETM Platform 2nd phần 10

để cấu hình một tài nguyên được gọi bởi container Web khi chế biến của một yêu cầu HTTP tạo một mã lỗi cụ thể HTTP. Chức năng này có thể được sử dụng để chuyển hướng một yêu cầu trái phép vào tài nguyên trong thùng chứa Web cung cấp cho người dùng một cơ hội để | ARCHITECTURE OF THE SAMPLE APPLICATION 375 up functions. It also uses a Business Delegate to bridge the EJB and Web tiers particularly if its entity beans are implemented with a remote client view. The Business Delegate is an object that hides the data retrieval details such as remote exceptions. A Value Object may be used to limit the number of remote access calls. Other components take care of the presentation of the retrieved data. The Screen View is a JSP page that builds the next screen to display to the user. It relies on a Composite View which is a template containing the page structure header footer and so forth . It also relies on a View Helper either a JavaBean component or a helper object that extracts the dynamic content for the page from the retrieved data. The Screen Flow Manager object keeps track of the next page in the sequence of pages. Figure reflects a remote view architecture. In actuality the sample application Web site uses a local architecture approach. While this approach limits distribution to one VM it does provide increased performance and the ability to have fine-grained method access. It also enables the application to leverage all the container-managed persistence capabilities offered by the EJB container. Using a local or a remote architecture affects the design of the application and its deployment strategy. Figure would have fewer layers had it reflected this local client view design. With a local client view the design can include finer granularity between components. Local method calls do not have the overhead of remote method calls. Because there are few layers and tiers are co-located it is not necessary to use value objects or business delegates. Value objects are not necessary for entity beans implemented with a local client view. Deployment is also affected by use of a local or remote architecture. An application implementing a local architecture must be deployed in one unit. Applications with a remote architecture

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.