BCD Session 01
BCD Session 01
Objectives
Ver. 1.0
Slide 1 of 24
Ver. 1.0
Slide 2 of 24
Ver. 1.0
Slide 3 of 24
EJB 3.0 beans are the Plain Old Java Object (POJO) styled
beans as opposed to pre-EJB 3.0 enterprise beans that
used to constitute multiple Java classes and interface per
EJB component.
EJB 3.0 bean has all its code contained in a single Java
class.
EJB 3.0 enterprise bean provides a single business
interface for both local and remote clients.
EJB 3.0 bean provides a bean class that provides definitions
of only the business interface.
EJB 3.0 bean does not have a home interface.
A message-driven bean, in EJB 3.0, doesnt need a
business interface.
Ver. 1.0
Slide 4 of 24
Ver. 1.0
Slide 5 of 24
Slide 6 of 24
Ver. 1.0
Slide 7 of 24
Drawbacks of annotations:
Annotation cannot form an inheritance hierarchy like interfaces
and classes.
Annotation data member types are restricted to primitive types,
String, Class, enum, annotation types, and arrays of the
preceding types.
You must access permission on the code, to annotate it.
Ver. 1.0
Slide 8 of 24
Ver. 1.0
Slide 9 of 24
Ver. 1.0
Slide 10 of 24
Ver. 1.0
Slide 11 of 24
Ver. 1.0
Slide 12 of 24
Ver. 1.0
Container
Component Type
Container Host
EJB container
EJBs
Web container
Servlets and
JavaServer
Pages (JSP)
Applet
container
Applets
Application
client
container
Application client
component
Web browser
Web pages
Ver. 1.0
Slide 14 of 24
Ver. 1.0
Slide 15 of 24
Ver. 1.0
Slide 16 of 24
Ver. 1.0
Slide 17 of 24
Ver. 1.0
Slide 18 of 24
Ver. 1.0
Slide 19 of 24
Ver. 1.0
Slide 20 of 24
Java EE platform:
Provides strict separation of the application components from
the general services and infrastructure.
Helps the developers to focus on the application business
logic.
Ver. 1.0
Slide 21 of 24
Ver. 1.0
Slide 22 of 24
Ver. 1.0
Slide 23 of 24
Ver. 1.0
Slide 24 of 24