Enterprise JavaBeans 3.0. What is EJB 3.0 -Reusable server-side component framework-technology -Designed to support building demanding enterprise – level.

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.
JNDI Java Naming Directory Interface JNDI is an API specified in Java that provides naming and directory functionality to applications written in Java.
An architecture for webb applications, J2EE
Introduction to Java 2 Enterprise Edition About myself –Neutrinos, Cancer Research, IT Applications Today’s topic: J2EE –Context –Advantages –Components.
Distributed System Using Java 2 Enterprise Edition (J2EE) B.Ramamurthy.
1 James Lynn Hewlett-Packard Middleware Division EJB Architecture Design Strategies and Performance Optimizations.
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.
EJB Design. Server-side components Perform –complex algorithms –high volume transactions Run in –highly available environment (365 days/year) –fault tolerant.
Application Server Lecture Paulo Barroso Kris Carver Todd Kitterman Eric Silva.
Java 2 – Enterprise Edition Kevin J. LaFata April 21, 2003 UM – St. Louis.
Client and Server Design J2EE Steps In. What now? At this point, you understand how to design servers and how to design clients But how do you put them.
Java 2 Platform, Enterprise Edition (J2EE). Source: Computer, August 2000 J2EE and Other Java 2 Platform Editions.
JMS Java Message Service Instructor Professor: Charles Tappert By Student: Amr Fouda.
J2EE Java 2 Enterprise Edition. Relevant Topics in The Java Tutorial Topic Web Page JDBC orial/jdbc
Enterprise Programming By J Pearce. Enterprise Software Sales HR Inventory Customer Support Shipping.
Nikolaos Korfiatis The Java 2 Enterprise Edition Platform Dept. of Management & Technology-Athens University of Economics and Business Java 2 Platform.
J2EE Kenneth M. Anderson CSCI Web Technologies October 3, 2001.
Introduction to EJB INFORMATICS ENGINEERING – UNIVERSITY OF BRAWIJAYA Eriq Muhammad Adams J
Emmanuel Cecchet et al.  Performance Scalability of J2EE application servers.  Test effect of: ◦ Application Implementation Methods ◦ Container Design.
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.
Introduction to Java EE (J2EE)
EJB Overview Celsina Bignoli Distributed Business Applications Server DB Client DB Server DB.
Distributed Multitiered Applications The J2EE platform uses a multitiered distributed application model. Application logic is divided into components 1.
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.
HTTP client wide area network (Internet) HTTP proxy HTTP server HTTP gateway firewall HTTP tunnel Copyright Springer Verlag Berlin Heidelberg 2004.
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.
Entity Java Beans Jorg Janke Open Source ERP & CRM.
Enterprise Java Bean Matt. 2 J2EE 3 J2EE Overview.
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 v120131Intro to JavaEE1 Java EE 5 TM Introduction.
Enterprise Java Beans Java for the Enterprise Server-based platform for Enterprise Applications Designed for “medium-to-large scale business, enterprise-wide.
Spring Framework. Spring Overview Spring is an open source layered Java/J2EE application framework Created by Rod Johnson Based on book “Expert one-on-one.
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared.
Databases JDBC (Java Database Connectivity) –Thin clients – servlet,JavaServer Pages (JSP) –Thick clients – RMI to remote databases –most recommended way.
1 Java EE Programming Enterprise JavaBeans. 2 Topics J2EE Overview Enterprise JavaBeans Overview Enterprise Entity Beans Case Study How to build them.
Version # Software Engineering Institute Carnegie Mellon University Pittsburgh, PA Sponsored by the U.S. Department of Defense © 1999 by Carnegie.
Assignment of JAVA id : BSSE-F10-M-10-JAVA1 Overview of J2EE/Session 2/Slide 1 of 38.
Notes from Coulouris 5Ed Distributed Systems Notes on Components.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
Session Beans Based on: Patel, Brose, Silverman, Mastering Enterprise JavaBeans 3.0.
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.
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.
Alan L. Batongbacal CS 4244 / 01 Nov 2000
Enterprise JavaBeans. Lesson 1: Introduction to Server-Side Component Software.
Glink for Java: applet, application and an API for integrating access to Bull, IBM, UNIX and Minitel systems with your Java based e-business applications.
J2EE Lecture 10: EJB 3.0 Overview
J2EE Platform Overview (Application Architecture)
Introduction to J2EE Architecture
Java EE Overview The problem Java Enterprise Edition attempts to solve: maximize the use of Java technologies by providing a suite of Java technology specifications.
Java EE Overview The problem Java Enterprise Edition attempts to solve: maximize the use of Java technologies by providing a suite of Java technology specifications.
Component-based Applications
Component Technology Bina Ramamurthy 2/25/2019 B.Ramamurthy.
Enterprise Java Beans Bina Ramamurthy 4/5/2019 B.Ramamurthy.
Developing and testing enterprise Java applications
Seminarium on Component-based Software Engineering
Presentation transcript:

Enterprise JavaBeans 3.0

What is EJB 3.0 -Reusable server-side component framework-technology -Designed to support building demanding enterprise – level solutions -EJB –standard defines many commonplace infrastructure services (a.k.a. Quality of Services, QOS ) -QOS’s are rendered to components hosted by Application Server (AS) -AS also provides running environment for EJB’s (along with QOS’s) -Frees application developers from re-inventing the wheel (in buggy way) and from many system level programming challenges, eg. Threading.

Sun renamed J2EE to Java EE from version 5.0 (also J2SE -> Java SE from version 6.0) EJB uses a lot of other existing Java - teknologies Most importants: JNDI, RMI, JMS, JTA, JDBC, Java persistence, JAAS Other Java EE – teknologies and EJB

How EJB works Copyright Sriganesh, Brose, Silverman in Mastering EJB 3.0 Picture 1 : Calling EJB Picture 2 : Various beans and clients

Different EJB 3.0 bean types Stateless bean is default choice always when program does not need to remember the state of the client conversation. All info into stateless bean via parameters (or bean retrieves info eg. from DB) Stateless bean example : Credit card verification component or video stream compressor engine Statefull when program needs to remember the state of client conversation. Eg. Web-bank or web-shop

Different types of EJB 3.0 Message-Driven Bean supports MOM –concept by taking advantage of JMS -standard Entities are not Beans, but are replacing the former EntityBeans in 3.0 –standard Other beans can use entities freely to get persistence services

RelationShip of AppServer, Services and Beans

Persistence EJB 3.0 uses new persistence concept : entities 3.0 also supports EntityBeans defined in previous EJB -standard version Main motivation for new concept was performance issues with EntityBeans Entities are defined in Java SE unifying persistence interfaces and programming Java Persistence is based on Plain Old Java Objects (POJO)

Transactions Transaction support is key part of EJB Programmer may choose (as with many services) explicit or implicit (declarative) transactions EJB’s can also be part of client-controlled transaction Support is based on Java Transaction Api (JTA)

Security Security support is another key part of EJB Programmer may choose (as with many services) explicit or implicit (declarative) security Support is based on Java Authentication and Authorization Service (JAAS) Place for security–info may vary, eg. DB, files, specific third-party software To protect data during transfer uses other standards, eg. SSL/TSL

Timer service Timer service may be used to automate clean up tasks Bean may run any kind of code when called back by timer service Not applicable for real-time operations Statefull beans and entities cannot register into service

Messaging service Message-Driven Beans uses JMS –standard to support MOM –concept JMS defines two interfaces : message-interface and messaging provider -interface Bean Container will call MDB when message arrives Supports both messaging –styles : point-to-point and puslish/subscribe

Java EE Connector Architecture Service to connect into legacy systems in a standard way Defines many interfaces that programmer may / may not implement Requires a specific resource –adapter for legacy system that implements the interfaces Supports eg, incoming/outgoing transactions, security, threading,…

Clustering EJB –standard does not define clustering -service but every major Application Server implements it some way Lack of standard leads into vendor-specific solutions Typical solution is to use ”smart stubs” which requires vendor specific compiling tools and couples the code into vendor Clustering is a common solution to get better performing and more robust service

Conclusion EJB is a good choice when Remoting is required Distributed transactions are required Security is required Persistence is required Integration with legacy apps is required Scalability is required Otherwise EJB may be overkill