J2EE Kenneth M. Anderson CSCI 7818 - Web Technologies October 3, 2001.

Slides:



Advertisements
Similar presentations
11 Copyright © 2005, Oracle. All rights reserved. Creating the Business Tier: Enterprise JavaBeans.
Advertisements

Approaches to EJB Replication. Overview J2EE architecture –EJB, components, services Replication –Clustering, container, application Conclusions –Advantages.
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.
Overview of The Java Platform Solution for E-Business Applications : JSP, Servlet and EJB.
Enterprise Java Beans Welcome to the world of “Distributed System” Presented By: Sameer Nanda Date: 12/17/03.
Chapter 13 Physical Architecture Layer Design
Application Server Lecture Paulo Barroso Kris Carver Todd Kitterman Eric Silva.
J2EE Java2 Enterprise Edition by Damian Borth. Contents Introduction Architectures styles Components Scenarios Roles Processing a HTTP request.
Java 2 Platform, Enterprise Edition (J2EE). Source: Computer, August 2000 J2EE and Other Java 2 Platform Editions.
July 23 th, 2005 Software Architecture in Practice RiSE’s Seminars Bass’s et al. Book :: Chapter 16 Fred Durão.
J2EE Security and Enterprise Java Beans Mrunal G. Dhond Department of Computing and Information Sciences Master of Science, Final Defense February 26,
Enterprise Programming By J Pearce. Enterprise Software Sales HR Inventory Customer Support Shipping.
12-1 © Prentice Hall, 2004 Chapter 12: Design Elements Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
Emmanuel Cecchet et al.  Performance Scalability of J2EE application servers.  Test effect of: ◦ Application Implementation Methods ◦ Container Design.
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.
EJB Fundamentals Celsina Bignoli
EJB. Component Characteristics An enterprise Bean typically contains business logic that operates on the enterprise’s data. An enterprise Bean’s instances.
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.
J2EE Part 2: Enterprise JavaBeans CSCI 4300 Images and code samples from jGuru EJB tutorial,
EJB Enterprise Java Bean.
Seminar: Enterprise JavaBeans. Agenda Agenda Java™ 2 Platform Java™ 2 Platform Java™ 2 Platform,Enterprise Edition(J2EE) Java™ 2 Platform,Enterprise Edition(J2EE)
Introduction to distributed systems Dr. S. Indran 23 January 2004.
CS 493/693: Distributed Systems Programming V. “Juggy” Jagannathan CSEE, West Virginia University March 21, 2005.
Enterprise Java Beans Part I Kyungmin Cho 2001/04/10.
Overview Of Enterprise Java Bean (EJB) COSC 513 Presentation Mei Li March 17, 2001.
Enterprise Java Beans Part II Kyungmin Cho 2001/04/13.
Enterprise Java Bean Matt. 2 J2EE 3 J2EE Overview.
CD Database Server (CDDB) Zachary Carter Alan Savage Diana Abbas Kyle Dorman.
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 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.
Slide 1 Physical Architecture Layer Design Chapter 13.
J2EE Overview ver 1.0Page 1 © Wipro Technologies Talent Transformation J2EE Overview.
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared.
Middleware for FIs Apeego House 4B, Tardeo Rd. Mumbai Tel: Fax:
Enterprise JavaBeans Understanding EJB Components Version 0.1 Kamal Wickramanayake
© 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.
Distribution and components. 2 What is the problem? Enterprise computing is Large scale & complex: It supports large scale and complex organisations Spanning.
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
Assignment of JAVA id : BSSE-F10-M-10-JAVA1 Overview of J2EE/Session 2/Slide 1 of 38.
© 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.
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.
Enterprise Computing Distribution and components.
13 Copyright © 2004, Oracle. All rights reserved. Managing Persistent Data in the Business Tier Entity EJBs.
©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.
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.
Introduction to J2EE Architecture
Introduction to Enterprise JavaBean
Distributed System Using Java 2 Enterprise Edition (J2EE)
Component-based Applications
Understanding and Designing with EJB
Enterprise Java Beans Bina Ramamurthy 4/5/2019 B.Ramamurthy.
Enterprise Java Beans.
Knowledge Byte In this section, you will learn about:
Presentation transcript:

J2EE Kenneth M. Anderson CSCI Web Technologies October 3, 2001

Credit where Credit is Due Most (if not all) of the information in this presentation comes from –Enterprise JavaBeans –by Richard Monson-Haefel –O’Reilly & Associates, Inc. –© 1999 and 2000

J2EE Stands for “Java 2, Enterprise Edition” It is a collection of standards –JDBC, JNDI, JMX, JMS It is a component technology –Enterprise JavaBeans It is an “application server” –Following in the footsteps of Component Transaction Monitors

History Distributed Objects –CORBA, DCOM, etc. –Three-tier scenario: presentation, business logic, and backend databases Hard to “get right” without the proper infrastructure Server-Side Components –Focuses on encapsulating “business rules” into objects in the middle tier Component Transaction Monitors –Descendant of CORBA’s Object Request Broker provides discovery, persistence, event notification, transactions, etc. for three-tier or n-tier applications

Enterprise JavaBeans, Defined From Sun: –The Enterprise JavaBeans architecture is a component architecture for the development and deployment of component-based distributed business applications. Applications written using the Enterprise JavaBeans architecture are scalable, transactional, and multi-user secure. These applications may be written once, and then deployed on any server platform that supports the Enterprise JavaBeans specification

Enterprise JavaBeans (shorter definition) From O’Reilly’s Enterprise JavaBeans book –Enterprise JavaBeans is a standard server-side component model for component transaction monitors Aha! It’s a standard for building server-side components and deploying them in component transaction monitors

Distributed Objects Scenario Client Stub Skeleton Server-Side Component Client-SideNetworkMiddle Tier invokes return results connect to remote object invoke return results return results Stub and Skeleton are auto-generated; client “thinks” its making a local call, most networking details are hidden from client; the main detail is obtaining a reference to the remote object  naming service

Architectural Overview Two Types of Enterprise JavaBeans –Entity Beans Used to model business concepts such as customer, cruise ship, inventory item, etc. –Session Beans A server-side “representative” of the client; session beans are responsible for managing processes or tasks; for instance in an airline reservation scenario, the session bean would be responsible for reserving a seat on a particular flight and verifying payment

Insight into Session Beans EJB Server Client Using Session Beans Client Using only Entity Beans

To Implement an Enterprise Bean Any enterprise bean must define two interfaces and one or two classes –Remote interface defines a bean’s external interface must extend javax.ejb.EJBObject (which in turn extends java.rmi.Remote) –Home interface The home interface defines a bean’s “life cycle” methods, eg. create bean, remove bean, find bean, etc. must extend javax.ejb.EJBHome which also extends java.rmi.Remote

To Implement, continued… Bean Class –The java class that actually implements the bean’s external interface, e.g. the bean class provides implementations for the bean’s “business methods” –An entity bean must implement the javax.ejb.EntityBean interface, while a session bean must implement the (you guessed it) javax.ejb.SessionBean. Both of these interfaces extend javax.ejb.EnterpriseBean Primary Key –The primary key is a very simple class that provides a pointer into a database; Only entity beans need a primary key. This class must implment java.io.Serializable (so the entity bean can automatically be sent to persistent storage)

Additional Info Clients never interact directly with a bean class, they use stubs (which connect to skeletons, which connect to “containers” which call the bean class…whew!) Why? This allows the application server to replicate bean instances (for performance reasons), manage transactions, etc. A bean also interacts with its server via a container interface: the container calls the bean’s life cycle methods, manages the bean’s persistence, etc.

Architecture Diagram Client Home Interface Home Stub Remote Interface EJB Stub EJB Server EJB Container Home Interface EJB Home Remote Interface EJB Object Bean Class

Benefits of an Application Server Resource Management –Instance Pooling and Swapping Server can invoke multiple instances of a bean to handle multiple incoming requests (pooling) An instance of a bean class can handle requests from multiple skeletons (swapping) –Activation if a bean is “stateful,” application servers automate the process of saving and restoring bean state when a bean is deactived and later activated

Benefits of an Application Server Primary Services –Concurrency Beans are automatically thread safe; application servers handle concurrent access to a bean; They also handle reentrance –Transactions Bean operations can belong to a transaction and the application server handles “rolling back” an application’s state if a partially completed transaction fails –Persistence Application servers can map beans into database entries (and back again) –Naming (bean discovery) and Security (encrypted communication and access control)

References Enterprise JavaBeans –by O’Reilly –ISBN: Sun’s J2EE website –