We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Enterprise Java Beans
Stephen M. Reaves
::
2024-03-29
Notes about Lecture 6c for CS-6210
Summary
N Tier Applications
- Persistence
- Transactions
- Caching
- Clustering
- Security
Structuring N Tier Applications
- Web Server
- Client Container
- Applet Container
- Presentation Logic
- Business Logic
Beans:
- Bundle of Java Objects
- Unit of Reuse
- Entity
- Row of a database
- Persistence may be built into entity or into container
- Session
- Associated with particular client (and temporal window)
- Stateful or Stateless
- Message
- Async behavior
- Data sent between entities
Design Alternative: Coarse Grain Session Beans
Pros | Cons |
Minimal container services | app structure akin to “monolithic kernel” |
Business logic not exposed | |
Design Alternative: Data Access Object
DAO using entity bean -> Container Managed Persistence, Bean Managed Persistence
Pro:
Con:
Design Alternative: Session Bean with Entity Bean
Pros:
- Business logic not exposed
- Concurrency