


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This document, authored by dr. Ye wu for swe 645 course in 2006, discusses the use, benefits, concerns, and implementation of session beans in multi-tiered applications. It covers stateless and stateful session beans, their lifecycles, and transitions. Students will learn how to write interfaces, implement classes, and deploy session beans.
Typology: Study notes
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Ye Wu
http://www.ise.gmu.edu/~wuye
SWE 645
Component-based Software Development
2006-9-
© Dr. Ye Wu
2
Implement non-trivial enterprise’s workflow orprocesses
-^
Usually are used in multi-tiered applications
2006-9-
© Dr. Ye Wu
3
DB Manager
DB
DB Manager
DB
2006-9-
© Dr. Ye Wu
4
DB1Manager
DB
DB Manager
DB
SessionBean
2006-9-
© Dr. Ye Wu
5
Simplify Enterprise Application
-^
Decouple dependences between client and server
-^
Reduce network traffic
-^
Enhanced security, transaction support
-^
Increase maintainability
2006-9-
© Dr. Ye Wu
6
How to determine the scope for a Session Beans– Use cases– Classes
2006-9-
© Dr. Ye Wu
7
A stateful session bean can keep data betweenclient accesses. A stateless session bean must not.
-^
Both represent a private resource for the client thatcreated them
-^
Both are intend to model a process or task
-^
Both can update shared data, but do not representthat shared data in the way that an entity beandoes.
2006-9-
© Dr. Ye Wu
8
Not Exist Method Ready
Class.newInstance()
injection
PostConstruct
@Predestroy
Businessmethods
2006-9-
© Dr. Ye Wu
13