TAILIEUCHUNG - Writing Enterprise Applications with Java™ 2 SDK, Enterprise Edition phần 6

Từ menu Tools, chọn Triển khai ứng dụng. Triển khai BonusApp hộp thoại bật lên. • Xác minh rằng việc lựa chọn máy chủ mục tiêu hoặc là localhost hoặc tên của các máy chủ chạy các máy chủ J2EE. Lưu ý: Không đánh dấu vào ô Return Jar khách hàng. Thời gian duy nhất bạn cần phải kiểm tra hộp này là khi bạn sử dụng quản lý bền bỉ hạt đậu hoặc triển khai một ứng dụng độc lập đối với chương trình khách hàng. . | SEPTEMBER 27 2000 59 From the Tools menu choose Deploy Application. A Deploy BonusApp dialog box pops up. Verify that the Target Server selection is either localhost or the name of the host running the J2EE server. Note Do not check the Return Client Jar box. The only time you need to check this box is when you use bean-managed persistence or deploy a stand-alone application for the client program. This example uses a servlet and HTML page so this book should not be checked. Checking this box creates a JAR file with deployment information needed by a stand-alone application. Click Next. Make sure the JNDI names show for calcs for caicBean and bonus for BonusBean. If they do not type the JNDI names in yourself and press the Return key. Click Next. Make sure the Context Root name shows BonusRoot. If it does not type it in yourself and press the Return key. Click Next. Click Finish to start the deployment. A dialog box pops up that displays the status of the deployment operation. When it is complete the three bars on the left will be completely shaded as shown in Figure 15. When that happens click OK. LESSON 3 COOPERATING ENTERPRISE BEANS 60 SEPTEMBER 27 2000 Figure 15 Deploy Application Run the J2EE Application The web server runs on port 8000 by default. To open the page point your browser to http localhost 8000 BonusRoot which is where the Deploy tool put the HTML file. Fill in a social security number and multiplier. Click the Submit button. BonusServiet processes your data and returns an HTML page with the bonus calculation on it. Bonus Calculation Soc Sec retrieved 777777777 Bonus Amount Retrieved If you supply the same social security number twice you will see something similar to this Bonus Calculation Soc Sec passed in 777777777 Multiplier passed in 2 Duplicate primary key LESSON 3 COOPERATING ENTERPRISE BEANS SEPTEMBER 27 2000 61 Lesson 4 JavaServer Pages Technology JavaServer Pages JSP technology lets you put segments of servlet

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.