27/10/141 /XX N: L P TRÌNH M NG 2 GV: NGUY N XUÂN VINH
TR NG Đ I H C NÔNG LÂM TP.HCMƯỜ KHOA CÔNG NGH THÔNG TIN
EJB: Stateless Session Bean
Presenter: Nguy n Xuân Vinh
Information Technology Faculty
Nong Lam University
27/10/142 /XX N: L P TRÌNH M NG 2 GV: NGUY N XUÂN VINH
TR NG Đ I H C NÔNG LÂM TP.HCMƯỜ KHOA CÔNG NGH THÔNG TIN
ACCP2005/EJB 2.0/Session 3/2 of 31
Session Objectives
Identify the constituents of an Enterprise
JavaBean.
Define a bean class, EJB object, home interface,
home object and deployment descriptors.
Define a stateless session bean
Write programs related to stateless session beans
Compile and deploy stateless session beans
27/10/143 /XX N: L P TRÌNH M NG 2 GV: NGUY N XUÂN VINH
TR NG Đ I H C NÔNG LÂM TP.HCMƯỜ KHOA CÔNG NGH THÔNG TIN
ACCP2005/EJB 2.0/Session 3/3 of 31
Review of Session 2-(1of 2)
In session 2 we discussed
Four stages are followed while developing business solutions
Six parties are involved while deploying Enterprise JavaBeans
Logical three-tier architecture of EJB:
The Client
The EJB Server
The Database
The EJB Container resides inside the EJB server. The container acts as a buffer
between the bean and the outside world.
The responsibility of the EJB Server and Container
27/10/144 /XX N: L P TRÌNH M NG 2 GV: NGUY N XUÂN VINH
TR NG Đ I H C NÔNG LÂM TP.HCMƯỜ KHOA CÔNG NGH THÔNG TIN
ACCP2005/EJB 2.0/Session 3/4 of 31
Review of Session 2-(2 of 2)
The server and the container provide following services to the
developer
* Transaction support
* Security support
* Persistence support
* Support for management of multiple instances .
An Enterprise Java Bean can be classified into:
* Session Beans
* Entity Beans
* Message-Driven Beans
27/10/145 /XX N: L P TRÌNH M NG 2 GV: NGUY N XUÂN VINH
TR NG Đ I H C NÔNG LÂM TP.HCMƯỜ KHOA CÔNG NGH THÔNG TIN
ACCP2005/EJB 2.0/Session 3/5 of 31
Components of an Enterprise Bean
Components of an
enterprise bean
The bean class
The EJB object
The Remote
interface
Deployment
Descriptors
The Home
Interface
The EJB-jar file
The Home object
The Local Interface
The LocalHome
Interface