ECLIPSE WEB TOOLS PLATFORM developing java web applications PHẦN 6

Thứ nhất, giao diện người dùng có thể thay đổi rất thường xuyên để cải thiện khả năng sử dụng của nó và tận dụng lợi thế của công nghệ trình bày mới, nhưng cốt lõi là có khả năng được ổn định. Ví dụ, trong một hệ thống ngân hàng lõi hoạt động | Iteration 2 Developing Session EJBs 349 public Schedule findSchedule long id return id @ - method view - type both public Team findTeam long id return id @ - method view - type both public Set getSchedulesForLeague String league return league @ - method view - type remote public void ejbCreate leagueFacade Building a Web Client A component with no clients is not very useful. Here you will modify the Web module from Chapter 7 to use your EJBs. The Web application will be assembled into the same enterprise application and will be deployed to the same server for testing. Since you already know how to create dynamic Web projects quickly do the following to create the Web module for League Planet 1. In the Project Explorer view use the New Dynamic Web Project wizard to create a project named LeaguePlanetWeb. For detailed information on creating projects refer to the Creating Web Applications section in Chapter 6. Select JBoss as the target runtime. Add the Web module to the LeaguePlanetEAR. 2. Accept the defaults for the other options and click Finish. WTP creates the project and populates it with configuration files such as the J2EE Web deployment descriptor . 3. Next define the module dependencies so that your Web module can call EJBs and use model objects. Select the LeaguePlanetWeb project in the Project Explorer right click and invoke the Properties menu item as before. Navigate to the J2EE Module Dependencies page see Figure . 350 CHAPTER 8 The Business Logic Tier Figure J2EE Module Dependencies for LeaguePlanetWeb 4. Check LeaguePlanetModel and LeaguePlanetEJBClient to add them the list. Click the OK button to accept your changes. 5. Next you will add a JSP that displays information about the leagues by calling your EJBs. To do this you must add a JSP to your Web module and write some code. The .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
169    72    2    29-05-2024
86    97    2    29-05-2024
Đã 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.