Overview Of Enterprise Java Bean (EJB) COSC 513 Presentation Mei Li March 17, 2001.

Slides:



Advertisements
Similar presentations
J0 1 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento.
Advertisements

11 Copyright © 2005, Oracle. All rights reserved. Creating the Business Tier: Enterprise JavaBeans.
Approaches to EJB Replication. Overview J2EE architecture –EJB, components, services Replication –Clustering, container, application Conclusions –Advantages.
6/1/20151 Luca Simone Software Engineering 2 a.a. 2001/2002.
1 Softsmith Open Learning - EJB 21-Nov Enterprise Java Beans Introduction –Application ServerApplication Server –Java 2 Enterprise EditionJava.
Sapana Mehta (CS-6V81) Overview Of J2EE & JBoss Sapana Mehta.
Introduction to Enterprise JavaBeans. Integrating Software Development Server-side Component Model Distributed Object Architecture –CORBA –DCOM –Java.
Enterprise Applications & Java/J2EE Technologies Dr. Douglas C. Schmidt Professor of EECS.
Application Server Lecture Paulo Barroso Kris Carver Todd Kitterman Eric Silva.
Copyright W. Howden1 Lecture 19: Intro to O/O Components.
July 23 th, 2005 Software Architecture in Practice RiSE’s Seminars Bass’s et al. Book :: Chapter 16 Fred Durão.
Enterprise Programming By J Pearce. Enterprise Software Sales HR Inventory Customer Support Shipping.
E-business Architecture.NET vs J2EE Judith Molka-Danielsen Feb.27, 2004.
J2EE Kenneth M. Anderson CSCI Web Technologies October 3, 2001.
CS 483 Enterprise and Web Application Programming
CS6320 – J2EE L. Grewe MOTIVATION: E-commerce and Enterprise Computing Models Four models for e-commerce and enterprise computing: Four models for e-commerce.
© 2004 IBM Corporation BEA WebLogic Server Introduction and Training.
Emmanuel Cecchet et al.  Performance Scalability of J2EE application servers.  Test effect of: ◦ Application Implementation Methods ◦ Container Design.
Java Pet Store Application. Outline Introduction Introduction Information Layer Information Layer Application Layer Application Layer Infrastructure Layer.
Distributed System Using Java 2 Enterprise Edition (J2EE)
Chapter 10 EJB Concepts of EJB Three Components in Creating an EJB Starting/Stopping J2EE Server and Deployment Tool Installation and Configuration of.
EJB Overview Celsina Bignoli Distributed Business Applications Server DB Client DB Server DB.
1 J2EE Components. 2 Application Servers relieve the programming burden for business distributed components. They provide support for system level services.
Enterprise Java Beans CS-422. Application Servers In the late 1980s and though the mid 1990s a number of corporations (Broadvision, Netscape…) marketed.
1 Session Bean Chuyên đề Lập trình Java & J2EE Chương 14 Biên soạn: Th.S Nguyễn văn Lành.
HTTP client wide area network (Internet) HTTP proxy HTTP server HTTP gateway firewall HTTP tunnel Copyright Springer Verlag Berlin Heidelberg 2004.
Enterprise Java Beans - (EJB)
EJB Enterprise Java Bean.
Ing. Ignacio Roqueta ARTech GeneXus and J2EE.
CS 493/693: Distributed Systems Programming V. “Juggy” Jagannathan CSEE, West Virginia University March 21, 2005.
Advanced Java Session 7 New York University School of Continuing and Professional Studies.
Chemical Toxicity and Safety Information System Shuanghui Luo Ying Li Jin Xu.
Enterprise Java Beans Part I Kyungmin Cho 2001/04/10.
Enterprise Java Bean Matt. 2 J2EE 3 J2EE Overview.
The Triad of Beans I Oleh: Dini Addiati ( ) Fahrurrozi Rahman ( Y) Irfan Hilmy ( ) Salman Azis A ( ) Aziiz Surahman.
Enterprise JavaBeans. Lesson 1: Introduction to Server-Side Component Software.
Enterprise JavaBeans. What is EJB? l An EJB is a specialized, non-visual JavaBean that runs on a server. l EJB technology supports application development.
Introduction to J2EE Architecture Portions by Kunal Mehta.
第十四章 J2EE 入门 Introduction What is J2EE ?
J2EE Structure & Definitions Catie Welsh CSE 432
Enterprise Java Beans Java for the Enterprise Server-based platform for Enterprise Applications Designed for “medium-to-large scale business, enterprise-wide.
© jGuru.com Enterprise JavaBeans Fundamentals.
1 Java EE Programming Enterprise JavaBeans. 2 Topics J2EE Overview Enterprise JavaBeans Overview Enterprise Entity Beans Case Study How to build them.
Enterprise Java Beans. Model 1 J2EE – Web View Model/View/Controller Model View Control Data base Web Server Model One Architecture HTTP Request HTTP.
Introduction to Enterprise JavaBeans Topics In Systems Architecture Barry Herbold
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
Introduction to EJB. What is an EJB ?  An enterprise java bean is a server-side component that encapsulates the business logic of an application. By.
1 Distributed System using J2EE. 2 What is J2EE?  J2EE (Java2 Enterprise Edition) offers a suite of software specification to design, develop, assemble.
Introduction to EJB. What is an EJB ?  An enterprise java bean is a server-side component that encapsulates the business logic of an application. By.
Java Programming: Advanced Topics 1 Enterprise JavaBeans Chapter 14.
Enterprise Java Beans N.V.RAJASEKHAR REDDY. Definition of EJB EJBs are the components that are the set of classes and interfaces deployed within a container.
Copyright © 2002 ProsoftTraining. All rights reserved. Enterprise JavaBeans.
©NIIT Introducing Enterprise JavaBeans (EJB) Lesson 1A / Slide 1 of 43J2EE Server Components Objectives In this lesson, you will learn about: The features.
Enterprise JavaBeans: Fundamentals. EJB Fundamentals(c)CDAC(Formerly NCST)2 Contents Introduction Technology Overview EJB Architecture EJB Specification.
Enterprise JavaBeans. Lesson 1: Introduction to Server-Side Component Software.
Middleware Technology (J2EE/EJB) EJB Fundamentals.
Advanced Java Session 7 New York University School of Continuing and Professional Studies.
EJB Enterprise Java Beans JAVA Enterprise Edition
EJB. Introduction Enterprise Java Beans is a specification for creating server- side scalable, transactional, multi-user secure enterprise-level applications.
©NIIT Session Beans Lesson 1B/ Slide 1 of 37J2EE Server Components Objectives In this lesson, you will learn to: Describe the characteristics of session.
Introduction to J2EE Architecture
Enterprise Java Bean. Overview of EJB View of EJB Conversation Roles in EJB, Types of Enterprise Beans Lifecycle of Beans Developing Applications using.
Introduction to Enterprise JavaBean
Distributed System Using Java 2 Enterprise Edition (J2EE)
Luca Simone Software Engineering 2 a.a. 2001/2002
Component-based Applications
Component Technology Bina Ramamurthy 2/25/2019 B.Ramamurthy.
Understanding and Designing with EJB
Enterprise Java Beans.
Knowledge Byte In this section, you will learn about:
Presentation transcript:

Overview Of Enterprise Java Bean (EJB) COSC 513 Presentation Mei Li March 17, 2001

What is EJB ? zWidely adopted N-tier sever side component architecture for J2EE. zAllows developers to quickly create scalable, versatile, reusable and portable applications. zIt provide complex middleware enterprise features at no cost to application developers.

N-tier Sever side component architecture Presentation Logic Pricing Shopping cart Billing DB Driver DataBase Firewall Presentation Layer Business Logic Layer Data Layer

The Benefits of EJB zRapid application development zBroad industry adoption zApplication portability yBusiness logic is platform independent and middleware independent. zProtection of IT investment ywrap or embrace existing infrastructure ysimplifies or enhances CORBA and DCOM

EJB Architecture EJB Server & Container Home Object EJB Object Client Home Interface Remote Interface (1) (2) (3) (4) Enterprise Beans (5) (1) Create me a new EJB object (2) Create EJB object (3) Return EJB object reference (4) Invoke business method (5) Delegate request to bean

EJB Server zProviding a runtime environment for one or more containers. zManaging low-level system resources, allocating resources to containers, multiprocessing, load balancing, providing naming and transaction service and making container visible.

EJB Container zProviding a playground where your enterprise beans can run. zResponsible for managing the beans running within them. zActing as an interface between your enterprise beans and the outside world. Client can never directly access your enterprise beans.

EJB Client zMaking use of EJB beans for operations. zFinding the home object through JNDI. zInvoking the business method on EJB object. zCan be servlets, applets, CORBA / IIOP EJB clients, etc.

Enterprise Beans zThere are two types of Enterprise Beans: ySession Beans xStateless session beans xstateful session beans yEntity Beans xBean managed persistent entity beans (BMP) xcontainer managed persistent entity beans (CMP)

Session Beans vs. Entity Beans zSession Bean yrepresent a business process, e.g. Billing credit card, trading stocks. yis associated with one client and the life of the session bean is the life of the customer. ydo not survive from the server crashes z Entity Bean yrepresentation of persistent data ycan be shared by multiple clients ycan read from DB and save back to DB yhas much longer life and can survive from server crashes

Activation vs. Passivation zActivation yWhen a client needs to use a bean that has been passivated, an activation process occurred. yThe state of the bean is swapped in from the persistent storage z Passivation yIf too many beans are instantiated, EJB container can passivate some of them ythe state of the bean is saved in a persistent store or file and swapped out

Stateless vs. Stateful zStateless yno internal state ycan be pooled to service multiple client yneed not to handle activation and passivation yexamples: calculator z Stateful ypossess internal state yneed to hand activation and passivation yexamples: shopping cart

Container Managed Persistent vs. Bean Managed Persistent zContainer Managed yEJB container is responsible for saving and retrieving bean’s state yIndependent of data source yEasy to develop z Bean Managed yEntity bean is responsible for saving bean’s state. yLess adaptive than container managed entity bean ypersistence need to be hard coded into the bean

Deployment Descriptor zAn essential part of EJB. Use XML after EJB1.1 zEnables EJB containers to provide implicit middleware services to enterprise beans without coding to any middleware API. zIt declares bean management and life-cycle requirement, persistence requirement (entity bean only), transaction requirements and security requirements

Summary zEJB is server side components written in JAVA zEJB components contains business logic only, no system-level programming zSystem-level service like transaction, security, threading, and persistence are automatically managed by EJB server/container.

Summary (cont’s) zComponents are declaratively customized (can customize transactional behavior, life-cycle, state management, security issue.) zEJB architecture are transactional, distributed, portable, multi-tier, scalable and secure. zEJB components are fully portable across any EJB server and any operating system.