Week 17 Sessions 30-31 Introduction To Enterprise JavaBeans

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

1 _________________ 3 __________________

___________________ ___________________
Java Enterprise Edition Programming Java Enterprise Edition Programming

Problems with the 3- Enterprise JavaBeans


Tier Architecture Technology
___________________ ___________________
 Increased performance demands on the ___________________  Enterprise JavaBeans (EJB) components ___________________
___________________ ___________________
server. are used to model business objects and
services.
 Additional Model and DAO elements if
standalone GUI application is needed.
___________________  Enterprise JavaBeans components exist in
an EJB container. ___________________
___________________  Two main types of EJB business logic
components:
___________________
___________________ 

Session bean
Entity bean
___________________
___________________ ___________________
___________________ ___________________
___________________ ___________________
Introduction to Enterprise JavaBeans * Property of STI
___________________ Introduction to Enterprise JavaBeans * Property of STI
___________________
Page 1 of 6 Page 3 of 6

2 _________________ 4 __________________
___________________ ___________________
Java Enterprise Edition Programming Java Enterprise Edition Programming

Web Tier and EJB tier


The 4-Tier Architecture
Integration
___________________ ___________________
 The Java 2 Platform Enterprise Edition
includes technologies to facilitate the
___________________  Three steps in integrating the Web tier ___________________
___________________ ___________________
with the Enterprise JavaBeans (EJB) tier:
distribution of the business logic of an
enterprise application. 1. Business Component Developers publish

___________________ the EJB interfaces to the application


Model. ___________________
___________________ 2. At deployment, names are given to the
enterprise beans and the Java Naming and
Directory Interface (JNDI) host is
___________________
___________________ identified.

3. The Web Component Developers create


___________________
___________________ servlets that access the enterprise beans.
___________________
___________________ ___________________
Source: http://java.sun.com/javaee/5/docs/tutorial/doc/figures/overview-
serverAndContainers.gif
___________________ ___________________
Introduction to Enterprise JavaBeans * Property of STI
___________________ Introduction to Enterprise JavaBeans * Property of STI
___________________
Page 2 of 6 Page 4 of 6
5 _________________
___________________
Java Enterprise Edition Programming

Enterprise JavaBeans
Interfaces
___________________
 The EJB specification requires two ___________________
___________________
interfaces:

 Home interface
 Remote interface
___________________
___________________
___________________
___________________
___________________
___________________
Introduction to Enterprise JavaBeans * Property of STI
___________________
Page 5 of 6

6 _________________
___________________
Java Enterprise Edition Programming

Business Delegate Class


___________________
 The Business Delegate class requires the ___________________
___________________
services of JNDI, EJB and Remote method
Invocation (RMI).

 The Business Delegate is used to hide the


complexity of integrating with the EJB tier
from the servlet. It must:
___________________
 Use JNDI to lookup the Home interface
___________________
___________________
 Use the Home interface to create the
enterprise bean object
 Call the business methods on the


enterprise bean object
Remove the enterprise bean when the
business method has completed its work
___________________
___________________
___________________
Introduction to Enterprise JavaBeans * Property of STI
___________________
Page 6 of 6

You might also like