Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Lecturer IT Dept.
Agenda
Background
JavaBeans
What is EJB?
Architecture
Roles
Steps involved
Questions?
Fat clients,
data model reused
Client/server
Thin clients,
both data model and N-Tier
business logic reused
Data DBMSs
Transaction handling
– Java Transaction Services (JTS)
Presentation (JSP, Servlet)
Communication (RMI)
middleware
Automatic distribution
Portability
Scalability
EJBean
EJB Object
security
JNDI
JTS
…..
By: shiv kumar sharma
Different types of EJBs,
1
Entity bean
– corresponds to a record in a database
Session bean
– handles business flow
(one per client)
Entity Session
entity beans
lives as long as the client is alive
database
lever as long as the database (“for
ever”)
should be reused
EJB developer
EJB deployer
PrimaryKey class
Write your Deployment Descriptor
database
Install the bean in the server