Thứ Năm, 4 tháng 9, 2014

JMS

Demo TechSchool Solutions designs software systems for schools. One of the problemsthat the schools face is teacher absenteeism or teachers taking leaves on a short  notice. The schools find it difficult to call substitute teachers in such a short time. TechSchool Solutions is planning to build a system which would enable the school teachers to request for leaves using the school portal. The system would then send an e-mail to all the substitute teachers that have been registered in the system. As a member of the development team, you are required to build the JMS-based module. Your tasks involve developing a session bean that acts as a message listener and receives a message from the JMS queue whenever a teacher puts in a leave request. The session bean, then calls other modules that handle rest of the processes.

Bước 1: Chạy View Domain Admin Console


Bước 2: Chọn Destination Resources, chọn new



 Bước 3: Hoàn thành các thao tác


Kết quả:


Bước 4: Vào netbean tạo 1  Web Application


Bước 5: Tạo 1 JSF Managed Bean

                               

Bước 6: Gọi JMS




Kết quả:


Bước 8: Viết code cho trang JSF Manager vừa tạo

Bước 9: Tạo thêm 1  Web Application để làm consumer




Bước 10: Tạo 1 JSF Managed Bean


Bước 11:  Gọi JMS




Kết quả:

 Bước 12: Viết code cho trang JSF Manager vừa tạo




Kết quả:




Nhận xét
-Một trong nhứng ưu điểm của JMS là nó không đồng bộ.
-Ứng dụng có tính phổ biến cao vì có thể gọi server từ ứng dụng hoặc hệ thống của một nền tảng hoàn toàn khác
-JMS đơn giản ,gọn gàng và dễ dàng để viết
-Tuy nhiên, JMS không thể xử lý nhiều yêu cầu gửi đến một lúc



Không có nhận xét nào:

Đăng nhận xét