J2EE and EJB Chuyên đề Lập trình Java & J2EE Chương 12+ Biên soạn: Nguyễn văn Lành | J2EE and EJB Chuyên đề Lập trình Java & J2EE Chương 12+ Biên soạn: Nguyễn văn Lành Objectives Overview of J2EE What is J2EE? J2EE Containers J2EE Platform Roles J2EE Technologies Benefits of J2EE /23 Objectives Overview on EJB Distributed Component model EJB Architecture Session bean Stateless session bean Stateful session bean Entity bean Bean-Managed Persistance Container-Managed Persistance /23 What is J2EE? multitiered distributed application model Specification, not a product Sun controls the J2EE specification IBMs WebSphere and BEAs WebLogic account for 59% of the J2EE market Container-Based Component Management Support for Business Logic Components /23 J2EE component a self-contained functional software unit that is assembled into a J2EE application. The J2EE specification defines the following J2EE components: Application clients and applets Java Servlet and JavaServer Pages (JSP) Enterprise JavaBeans (EJB) components (enterprise beans) are business . | J2EE and EJB Chuyên đề Lập trình Java & J2EE Chương 12+ Biên soạn: Nguyễn văn Lành Objectives Overview of J2EE What is J2EE? J2EE Containers J2EE Platform Roles J2EE Technologies Benefits of J2EE /23 Objectives Overview on EJB Distributed Component model EJB Architecture Session bean Stateless session bean Stateful session bean Entity bean Bean-Managed Persistance Container-Managed Persistance /23 What is J2EE? multitiered distributed application model Specification, not a product Sun controls the J2EE specification IBMs WebSphere and BEAs WebLogic account for 59% of the J2EE market Container-Based Component Management Support for Business Logic Components /23 J2EE component a self-contained functional software unit that is assembled into a J2EE application. The J2EE specification defines the following J2EE components: Application clients and applets Java Servlet and JavaServer Pages (JSP) Enterprise JavaBeans (EJB) components (enterprise beans) are business components that run on the server /23 J2EE Containers J2EE server provides underlying services in the form of a container for every component type JNDI lookup services Security Transaction Management Remote connectivity Life cycle management Deployment services /23 J2EE Platform Roles J2EE Product Provider Tool Provider Application Component Provider Application Assembler Application Deployer Administrator /23 J2EE Technologies /23 J2EE Platform Benefits Simplified architecture and development Freedom of choice in servers, tools, and components Integration with existing information systems Scalability Flexible security model /23 The whole picture /23 Overview on EJB Enterprise JavaBean equivalent to COM+ from .NET a distributed component model Based on RMI-IIOP protocol link between presentation components hosted by the Web tier and business-critical data in the enterprise information system tier /23 Overview on EJB Three kinds of enterprise beans: session beans .