ACT_DevEJB_Assignment_M14_v1.1
Alpha is the name of a mail-order company. You are part the team that isdeveloping a solution for automating the processes involved between order logging, invoicing, and the shipment of goods. You have to develop a message-driven bean that acts as an intermediary between the sub-systems that constitute the solution. Each of the subsystems is implemented in the form of entity beans. The first subsystem is where the orders are logged. As soon as the order is registered, a message is sent from the Order subsystem to the message-driven bean. The message-driven bean, in turn calls the other two subsystems, Invoicing and Shipping to proceed with the order. In other words, the message-driven bean that you develop should act as a trigger for the other two subsystems.
Bước 1:Tạo Jms theo các bước như sau:
Bươc 2: Tạo mới 1 java web application,gồm các thành phần sau:
Bước 3: Tạo JSF Managed Bean,chuột phải chọn Insert code /SendMessage chọn tới Jms resource ta vừa tạo trên .
Bước 4:code cho file index.xhtml
Bước 5:chạy ta được giao diện như sau,và nhập dữ liệu và gửi thông tin đi
Bước 6: Tạo EJB Module có tên consumer
Bước 7: Tạo Message Driven Bean để nhận và hiển thị ra message
Không có nhận xét nào:
Đăng nhận xét