Entity Bean persistence
Container-managed
- Container is responsible for saving state
- In deployment descriptor, specify container-managed fields
- persistence independent of data source
Bean-managed
- Bean is responsible for saving its own state
- Container doesn’t need to generate DB calls
- Less adaptable; persistence is hard-coded