EJB Introduction & Session Bean

Enterprise JavaBeans (EJB) is a managed, server-side component architecture for modular construction of enterprise applications. The EJB specification is one of several Java APIs in the Java EE specification. EJB is a server-side model that encapsulates the business logic of an EJB specification intends to provide a standard way to implement the back-end 'business' code typically found in enterprise applications (as opposed to 'front-end' interface code). Such code addresses the same types of problems, and solutions to these problems are often repeatedly re-implemented by programmers. | EJB Introduction & Session Bean Đào Anh Tuấn – datuan@ EJB Introdution – Định nghĩa Enterprise JavaBeans (EJB) is a platform for building portable, reusable, and scalable business applications using the Java programming language. From a developer’s point of view, an EJB is a piece of Java code that executes in a specialized runtime environment called the EJB container, which provides a number of component services Reusable: For example, you can implement the credit card–charging module as an EJB component that may be accessed by multiple applications Main strength: Multithreading Các dịch vụ EJB hỗ trợ Vai trò EJB trong mô hình layers Vị trí của EJB EJB Types: Consists of three types: Session Beans Message-Driven Beans Entity Beans Trong đó Session và Message-Driven Beans đảm nhiệm vai trò ở tầng Business, Entity Beans đảm nhiệm vai trò ở tầng Persistence J2EE Container EJB chỉ có thể thực thi trong các EJB Container J2EE container cung cấp cho người dùng nhiều dịch . | EJB Introduction & Session Bean Đào Anh Tuấn – datuan@ EJB Introdution – Định nghĩa Enterprise JavaBeans (EJB) is a platform for building portable, reusable, and scalable business applications using the Java programming language. From a developer’s point of view, an EJB is a piece of Java code that executes in a specialized runtime environment called the EJB container, which provides a number of component services Reusable: For example, you can implement the credit card–charging module as an EJB component that may be accessed by multiple applications Main strength: Multithreading Các dịch vụ EJB hỗ trợ Vai trò EJB trong mô hình layers Vị trí của EJB EJB Types: Consists of three types: Session Beans Message-Driven Beans Entity Beans Trong đó Session và Message-Driven Beans đảm nhiệm vai trò ở tầng Business, Entity Beans đảm nhiệm vai trò ở tầng Persistence J2EE Container EJB chỉ có thể thực thi trong các EJB Container J2EE container cung cấp cho người dùng nhiều dịch vụ cao cấp khác nhau Trong phạm vi môn học: Sử dụng server JBoss Bussiness Logic with Session Bean Một ứng dụng thường bao gồm rất nhiều nghiệp vụ: Kiểm tra tài khoản, rút tiền, xuất hóa đơn Session Bean đóng vai trò cài đặt các chức năng nghiệp vụ cho ứng dụng. Nói một cách đơn giản: Session bean bao gồm một tập các hàm cho phép client truy xuất để hoàn thành một công việc nào đó. Các client có thể là một desktop application, jsp/servlet hoặc có thể là một ứng dụng .NET truy xuất theo cơ chế web service Các hàm của session bean có thể được truy xuất từ xa, không nhất thiết phải nằm trên máy cục bộ -> ứng dụng phân tán (distributed) Advantages: Một số điểm mạnh khi dùng session bean: concurrency and thread safety: có thể xử lý nhiều client cùng lúc mà không cài đặt các cơ chế đặc biệt (do container quản lý) remote invocation: có thể được triệu gọi từ xa transaction and security management Cấu trúc một session bean: Gồm 2 phần: Bean interfaces và bean implementation class. Client không

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã 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.