Danh mục

Bài giảng Lập trình mạng: Stateless Session Bean - GV. Nguyễn Xuân Vinh

Số trang: 30      Loại file: ppt      Dung lượng: 567.50 KB      Lượt xem: 2      Lượt tải: 0    
Thư Viện Số

Hỗ trợ phí lưu trữ khi tải xuống: 6,000 VND Tải xuống file đầy đủ (30 trang) 0
Xem trước 3 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

Session Objectives: Identify the constituents of an Enterprise, JavaBean, define a bean class, EJB object, home interface, home object and deployment descriptors, define a stateless session bean, write programs related to stateless session beans, compile and deploy stateless session beans.
Nội dung trích xuất từ tài liệu:
Bài giảng Lập trình mạng: Stateless Session Bean - GV. Nguyễn Xuân Vinh TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCMGV: NGUYỄN XUÂN VINHMÔN: LẬP TRÌNH MẠNG 2 KHOA CÔNG NGHỆ THÔNG TIN EJB: Stateless Session Bean27/10/14 Presenter: Nguyễn Xuân Vinh Information Technology Faculty/XX Nong Lam University1 TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Session ObjectivesGV: NGUYỄN XUÂN VINH  Identify the constituents of an Enterprise JavaBean.MÔN: LẬP TRÌNH MẠNG 2  Define a bean class, EJB object, home interface, home object and deployment descriptors.  Define a stateless session bean  Write programs related to stateless session beans  Compile and deploy stateless session beans27/10/14/XX ACCP2005/EJB2.0/Session3/2of312 TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Review of Session 2-(1of 2)GV: NGUYỄN XUÂN VINH In session 2 we discussed  Four stages are followed while developing business solutions  Six parties are involved while deploying Enterprise JavaBeans  Logical three-tier architecture of EJB:  The Client  The EJB ServerMÔN: LẬP TRÌNH MẠNG 2  The Database  The EJB Container resides inside the EJB server. The container acts as a buffer between the bean and the outside world.  The responsibility of the EJB Server and Container27/10/14/XX ACCP2005/EJB2.0/Session3/3of313 TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Review of Session 2-(2 of 2)GV: NGUYỄN XUÂN VINH  The server and the container provide following services to the developer * Transaction support * Security support * Persistence supportMÔN: LẬP TRÌNH MẠNG 2 * Support for management of multiple instances .  An Enterprise Java Bean can be classified into: * Session Beans * Entity Beans * Message-Driven Beans27/10/14/XX ACCP2005/EJB2.0/Session3/4of314 TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Components of an Enterprise BeanGV: NGUYỄN XUÂN VINH Components of an enterprise beanMÔN: LẬP TRÌNH MẠNG 2 The LocalHome Interface The Local Interface The bean class The EJB-jar file The EJB object Deployment Descriptors27/10/14 The Remote The Home object interface/XX The Home ACCP2005/EJB2.0/Session3/5of315 Interface TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN The Bean classGV: NGUYỄN XUÂN VINH Communicates to the client through the interface TheBean Bound Well-defined interfaceMÔN: LẬP TRÌNH MẠNG 2 Works in any container with the help of these interfaces Container publicinterfacejavax.ejb.EnterpriseBeanextends java.io.Serializable{ } Oncetheaboveinterfaceis27/10/14 implemented,thebeanclassis confirmed/XX ACCP2005/EJB2.0/Session3/6of316 ...

Tài liệu được xem nhiều: